Skip to content

New incompatibility with Gin 1.11.0 #538

@camille-sound4

Description

@camille-sound4

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions