From 7a87c5cbd4946d9b3e5c57e96f4a5179f812fb9e Mon Sep 17 00:00:00 2001 From: Manu Mtz-Almeida Date: Tue, 26 Aug 2014 17:50:07 +0200 Subject: [PATCH] Referencing the http.Hijacker interface --- response_writer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/response_writer.go b/response_writer.go index 4a65daf..0def5d0 100644 --- a/response_writer.go +++ b/response_writer.go @@ -11,10 +11,10 @@ import ( type ( ResponseWriter interface { http.ResponseWriter + http.Hijacker Status() int Written() bool WriteHeaderNow() - Hijack() (net.Conn, *bufio.ReadWriter, error) } responseWriter struct { @@ -59,7 +59,7 @@ func (w *responseWriter) Written() bool { return w.written } -// allow connection hijacking +// Implements the http.Hijacker interface func (w *responseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) { hijacker, ok := w.ResponseWriter.(http.Hijacker) if !ok {