Make ResponseWriter a struct
Make ResponseWriter a struct again so that it can be extended in a backwards-compatible way.
This commit is contained in:
2
mux.go
2
mux.go
@@ -212,7 +212,7 @@ func (mux *ServeMux) Handler(r *Request) Handler {
|
||||
|
||||
// ServeGemini dispatches the request to the handler whose
|
||||
// pattern most closely matches the request URL.
|
||||
func (mux *ServeMux) ServeGemini(ctx context.Context, w ResponseWriter, r *Request) {
|
||||
func (mux *ServeMux) ServeGemini(ctx context.Context, w *ResponseWriter, r *Request) {
|
||||
h := mux.Handler(r)
|
||||
h.ServeGemini(ctx, w, r)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user