-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Improve SSE stream and add input validation (main)
- Handle potential write errors in SSE stream and gracefully close the connection if necessary. - Add input validation to prevent integer overflow when setting the counter value. Return a 400 error if the value is too large. - Add logging to handle write errors for the SSE stream. - Fix nosec warnings in main.go and routes.go.
- Loading branch information
1 parent
deb82af
commit 1f70c0b
Showing
2 changed files
with
21 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters