mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 15:30:55 +00:00
Merge pull request #1309 from smallfish/develop
Update router.go, add Flush for responseWriter
This commit is contained in:
commit
4081311a37
@ -931,6 +931,13 @@ func (w *responseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) {
|
|||||||
return hj.Hijack()
|
return hj.Hijack()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (w *responseWriter) Flush() {
|
||||||
|
f, ok := w.writer.(http.Flusher)
|
||||||
|
if ok {
|
||||||
|
f.Flush()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func tourl(params map[string]string) string {
|
func tourl(params map[string]string) string {
|
||||||
if len(params) == 0 {
|
if len(params) == 0 {
|
||||||
return ""
|
return ""
|
||||||
|
Loading…
Reference in New Issue
Block a user