-
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.
feat: set Content-Type header to application/gzip|zstd when the compr…
…ession property in the request was set #665 That way we lose information about the actual content of the request, but Chrome downloads zstd encoded data instead of failing to display it.
- Loading branch information
1 parent
b1972cd
commit 87a1f0f
Showing
15 changed files
with
242 additions
and
119 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
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
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
14 changes: 14 additions & 0 deletions
14
lapis2/src/main/kotlin/org/genspectrum/lapis/controller/Headers.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.genspectrum.lapis.controller | ||
|
||
object LapisHeaders { | ||
const val REQUEST_ID = "X-Request-ID" | ||
const val LAPIS_DATA_VERSION = "Lapis-Data-Version" | ||
|
||
} | ||
|
||
object LapisMediaType { | ||
const val TEXT_X_FASTA = "text/x-fasta" | ||
const val TEXT_CSV = "text/csv" | ||
const val TEXT_CSV_WITHOUT_HEADERS = "text/csv;$HEADERS_ACCEPT_HEADER_PARAMETER=false" | ||
const val TEXT_TSV = "text/tab-separated-values" | ||
} |
Oops, something went wrong.