mirror of
https://github.com/datarhei/core.git
synced 2025-11-03 02:23:42 +08:00
Add /api/v3/events endpoint
This commit is contained in:
@@ -114,4 +114,9 @@ func (w *fakeWriter) Write(body []byte) (int, error) {
|
||||
return n, err
|
||||
}
|
||||
|
||||
func (w *fakeWriter) Flush() {}
|
||||
func (w *fakeWriter) Flush() {
|
||||
flusher, ok := w.ResponseWriter.(http.Flusher)
|
||||
if ok {
|
||||
flusher.Flush()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user