diff options
-rw-r--r-- | libproxy/url.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libproxy/url.cpp b/libproxy/url.cpp index 026cf78..0ea1141 100644 --- a/libproxy/url.cpp +++ b/libproxy/url.cpp @@ -428,7 +428,7 @@ char* url::get_pac() { if (sock < 0) return NULL; // Build the request string - request = "GET " + m_path + " HTTP/1.1\r\n"; + request = "GET " + (m_path.size() > 0 ? m_path : "/") + " HTTP/1.1\r\n"; request += "Host: " + m_host + "\r\n"; request += "Accept: " + string(PAC_MIME_TYPE) + "\r\n"; request += "Connection: close\r\n"; |