]> git.ipfire.org Git - thirdparty/git.git/blobdiff - http.c
Merge branch 'mh/http-urlmatch-cleanup'
[thirdparty/git.git] / http.c
diff --git a/http.c b/http.c
index 9e33584f2d159de2983dccc74f177e9aeb3011b1..027a86d75dc4d19e1e7b2361c84fd505c575a0e4 100644 (file)
--- a/http.c
+++ b/http.c
@@ -513,9 +513,11 @@ static void set_proxyauth_name_password(CURL *result)
 #else
                struct strbuf s = STRBUF_INIT;
 
-               strbuf_addstr_urlencode(&s, proxy_auth.username, 1);
+               strbuf_addstr_urlencode(&s, proxy_auth.username,
+                                       is_rfc3986_unreserved);
                strbuf_addch(&s, ':');
-               strbuf_addstr_urlencode(&s, proxy_auth.password, 1);
+               strbuf_addstr_urlencode(&s, proxy_auth.password,
+                                       is_rfc3986_unreserved);
                curl_proxyuserpwd = strbuf_detach(&s, NULL);
                curl_easy_setopt(result, CURLOPT_PROXYUSERPWD, curl_proxyuserpwd);
 #endif