fix
This commit is contained in:
1 parent
484ce85e65
commit
ce3903882d
1 file changed
+3
@@ -144,6 +144,9 @@ func main() {
|
|||||||
c.JSON(http.StatusInternalServerError, gin.H{"error": "streaming not supported"})
|
c.JSON(http.StatusInternalServerError, gin.H{"error": "streaming not supported"})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if flusher, ok := c.Writer.(http.Flusher); ok {
|
||||||
|
flusher.Flush()
|
||||||
|
}
|
||||||
|
|
||||||
c.Status(http.StatusOK)
|
c.Status(http.StatusOK)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user