fix: Prevent resource leaks by adding body close in stream handlers
This commit is contained in:
1 parent
d647214555
commit
c4ca4af8ce
4 files changed
+7
-4
No files matched your search
@@ -249,7 +249,7 @@ func OaiStreamHandler(c *gin.Context, resp *http.Response, info *relaycommon.Rel
|
||||
|
||||
helper.Done(c)
|
||||
|
||||
resp.Body.Close()
|
||||
//resp.Body.Close()
|
||||
return nil, usage
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user