We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I subscribes to a server, and it's returns me with status code 401, from the code we can see the req.Body didn't closed properly.
req.Body
Use a custom ResponseValidator like below can avoid at user side:
ResponseValidator
sseClient.ResponseValidator = func(c *sse.Client, resp *http.Response) error { if resp.StatusCode != 200 { resp.Body.Close() return fmt.Errorf("could not connect to stream: %s", http.StatusText(resp.StatusCode)) } return nil }
The text was updated successfully, but these errors were encountered:
Hi @tigerlee
Thanks for raising the issue! This should now be fixed in v2.3.6
v2.3.6
Sorry, something went wrong.
should this issue be closed then?
No branches or pull requests
Description
When I subscribes to a server, and it's returns me with status code 401, from the code we can see the
req.Body
didn't closed properly.Workaround
Use a custom
ResponseValidator
like below can avoid at user side:The text was updated successfully, but these errors were encountered: