Fix Zipkin receiver wrong condition for decoding `gzip` (#8592)

This commit is contained in:
Kai 2022-02-25 18:58:13 +08:00 committed by GitHub
parent 351f39d509
commit f390b14404
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -63,6 +63,7 @@ Release Notes.
* Set default connection timeout of ElasticSearch to 3000 milliseconds.
* Support ElasticSearch 8 and add it into E2E tests.
* Disable indexing for field `alarm_record.tags_raw_data` of binary type in ElasticSearch storage.
* Fix Zipkin receiver wrong condition for decoding `gzip`.
#### UI

View File

@ -58,7 +58,7 @@ public class SpanProcessor {
private InputStream getInputStream(HttpServletRequest request) throws IOException {
InputStream requestInStream;
String headEncoding = request.getHeader("accept-encoding");
String headEncoding = request.getHeader("Content-Encoding");
if (headEncoding != null && (headEncoding.indexOf("gzip") != -1)) {
requestInStream = new GZIPInputStream(request.getInputStream());
} else {