Skip to content

Commit 73d39e2

Browse files
committed
Fix a error resp in Accept
1 parent 3e007c6 commit 73d39e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

accept.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func accept(w http.ResponseWriter, r *http.Request, opts AcceptOptions) (*Conn,
106106
hj, ok := w.(http.Hijacker)
107107
if !ok {
108108
err = xerrors.New("passed ResponseWriter does not implement http.Hijacker")
109-
http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
109+
http.Error(w, http.StatusText(http.StatusNotImplemented), http.StatusNotImplemented)
110110
return nil, err
111111
}
112112

0 commit comments

Comments
 (0)