-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: return valid gzip when LAPIS returns an error response #656
Apparently the following happened: * The gzip stream eagerly writes the gzip header to the underlying stream (in its constructor) * an error occurs * Spring's error handling resets the response buffer (erasing the gzip header) * The exception handler writes a messages, which gets gzip compressed. Fix by: Delay initializing the gzip output stream until something is written to it.
- Loading branch information
1 parent
dbd48e4
commit db1c6cb
Showing
2 changed files
with
62 additions
and
8 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