Skip to content
This repository has been archived by the owner on May 3, 2019. It is now read-only.

Commit

Permalink
Implement http.Hijacker in ResponseWriter
Browse files Browse the repository at this point in the history
According to recent changes from [0] ResponseWriter
must implement `http.Hijacker` to allow websockets to work properly.

* [0] golang/go#26937

Signed-off-by: Igor Shishkin <me@teran.ru>
  • Loading branch information
teran committed Mar 1, 2019
1 parent 7943a2d commit 5a05b27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions middleware/logging/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ func (l *Logging) Middleware(next http.Handler) http.Handler {
// ResponseWriterWithStatus implements adding status code to ResponseWriter object
type ResponseWriterWithStatus struct {
http.ResponseWriter
http.Hijacker

Status int
}

Expand Down

0 comments on commit 5a05b27

Please sign in to comment.