summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libproxy/url.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libproxy/url.cpp b/libproxy/url.cpp
index e6806cc..df75022 100644
--- a/libproxy/url.cpp
+++ b/libproxy/url.cpp
@@ -446,7 +446,7 @@ char* url::get_pac() {
/* Check for correct mime type and content length */
for (line = recvline(sock) ; line != "\r" && line != "" ; line = recvline(sock)) {
// Check for chunked encoding
- if (line.find("Content-Transfer-Encoding: chunked") == 0)
+ if (line.find("Content-Transfer-Encoding: chunked") == 0 || line.find("Transfer-Encoding: chunked") == 0)
chunked = true;
// Check for content length