-
Notifications
You must be signed in to change notification settings - Fork 336
Closed
Description
When updating Gin to 1.11.0, the Accept is not working anymore, due to an extra verification done in Gin.
This is due to the Gin commit prevention of Hijack() runtime panics, which now checks in responseWriter.Hijack that the writer has not yet been written, and returns an error otherwise ("gin: response already written").
The worst is that all this is due to a Gin specific patch made here a long time ago Gin compatabilty.
This calls ginWriter.WriteHeaderNow(), which turns to set the w.size to 0 before calling Hijack().
I am not sure how this should be corrected, as it seems it depends on Gin version...
firu11
Metadata
Metadata
Assignees
Labels
No labels