Commit 4081311a authored by astaxie's avatar astaxie

Merge pull request #1309 from smallfish/develop

Update router.go, add Flush for responseWriter
parents 9107fd88 506f54a0
......@@ -931,6 +931,13 @@ func (w *responseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) {
return hj.Hijack()
}
func (w *responseWriter) Flush() {
f, ok := w.writer.(http.Flusher)
if ok {
f.Flush()
}
}
func tourl(params map[string]string) string {
if len(params) == 0 {
return ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment