1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-13 19:53:32 +00:00

Update router.go, add Flush for responseWriter

This commit is contained in:
陈小玉 2015-08-19 15:23:50 +08:00
parent 9107fd8898
commit 506f54a080

View File

@ -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 ""