fix
This commit is contained in:
3
main.go
3
main.go
@@ -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