Skip to content

Commit

Permalink
Fix a error resp in Accept
Browse files Browse the repository at this point in the history
  • Loading branch information
nhooyr committed Jun 10, 2019
1 parent 3e007c6 commit 73d39e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accept.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func accept(w http.ResponseWriter, r *http.Request, opts AcceptOptions) (*Conn,
hj, ok := w.(http.Hijacker)
if !ok {
err = xerrors.New("passed ResponseWriter does not implement http.Hijacker")
http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
http.Error(w, http.StatusText(http.StatusNotImplemented), http.StatusNotImplemented)
return nil, err
}

Expand Down

0 comments on commit 73d39e2

Please sign in to comment.