mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
don't write status code when the response writer was hijacked
This commit is contained in:
parent
acc3a0b9a3
commit
4246ef6980
2
.github/ISSUE_TEMPLATE.md
vendored
2
.github/ISSUE_TEMPLATE.md
vendored
|
@ -1,4 +1,4 @@
|
||||||
- Version : **6.0.0**
|
- Version : **6.0.8**
|
||||||
|
|
||||||
- Operating System:
|
- Operating System:
|
||||||
|
|
||||||
|
|
|
@ -198,6 +198,7 @@ func (w *responseWriter) SetContentType(cType string) {
|
||||||
// or clear those deadlines as needed.
|
// or clear those deadlines as needed.
|
||||||
func (w *responseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) {
|
func (w *responseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) {
|
||||||
if h, isHijacker := w.ResponseWriter.(http.Hijacker); isHijacker {
|
if h, isHijacker := w.ResponseWriter.(http.Hijacker); isHijacker {
|
||||||
|
w.statusCodeSent = true
|
||||||
return h.Hijack()
|
return h.Hijack()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user