summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordominique.leuenberger@gmail.com <dominique.leuenberger@gmail.com@c587cffe-e639-0410-9787-d7902ae8ed56>2012-02-05 15:23:12 (GMT)
committerdominique.leuenberger@gmail.com <dominique.leuenberger@gmail.com@c587cffe-e639-0410-9787-d7902ae8ed56>2012-02-05 15:23:12 (GMT)
commit818b0d38a314d0835525b133058fe0d6eb8483d6 (patch)
tree4ac0788e1479e6270300dc896c280973fc96f4f6
parent4759aca6345903b66964878e6a0a91e6e73202d4 (diff)
downloadlibproxy-818b0d38a314d0835525b133058fe0d6eb8483d6.tar.gz
libproxy-818b0d38a314d0835525b133058fe0d6eb8483d6.tar.xz
Issue 170: need also check "Transfer-Encoding: chunked" for chunk for http pac
git-svn-id: https://libproxy.googlecode.com/svn/trunk@830 c587cffe-e639-0410-9787-d7902ae8ed56
-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