未验证 提交 f390b144 编写于 作者: K Kai 提交者: GitHub

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

上级 351f39d5
......@@ -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
......
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册