Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions llvm/lib/Debuginfod/HTTPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ HTTPClient::HTTPClient() {
assert(Curl && "Curl could not be initialized");
// Set the callback hooks.
curl_easy_setopt(Curl, CURLOPT_WRITEFUNCTION, curlWriteFunction);
// Detect supported compressed encodings and accept all.
curl_easy_setopt(Curl, CURLOPT_ACCEPT_ENCODING, "");
}

HTTPClient::~HTTPClient() { curl_easy_cleanup(Curl); }
Expand Down
2 changes: 2 additions & 0 deletions llvm/test/tools/llvm-debuginfod-find/headers.test
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ RUN: env DEBUGINFOD_CACHE=%t/debuginfod-cache DEBUGINFOD_HEADERS_FILE=%S/Inputs/
RUN: | FileCheck --check-prefix ERR -DHEADER_FILE=%S/Inputs/headers %s

NO-HEADERS: Accept: */*
NO-HEADERS-NEXT: Accept-Encoding: {{.*}}
NO-HEADERS-NOT: {{.}}

HEADERS: Accept: */*
HEADERS-NEXT: Accept-Encoding: {{.*}}
HEADERS-NEXT: A: B
HEADERS-NEXT: C: D
HEADERS-NEXT: E: F
Expand Down