cgmnlm

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/cgmnlm.git
Log | Files | Refs | README | LICENSE

commit 1808e6cd1880d3c08abb0ddfa19044afada925dd
parent 4b2437b17e00d61da9356ac96bb38a8043c66fca
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun, 20 Sep 2020 19:40:27 -0400

Don't + encode spaces in URLs

Diffstat:
Msrc/url.c | 13-------------
1 file changed, 0 insertions(+), 13 deletions(-)

diff --git a/src/url.c b/src/url.c @@ -1361,19 +1361,6 @@ CURLUcode curl_url_set(struct Curl_URL *u, CURLUPart what, char *enc = malloc(nalloc * 3 + 1); /* for worst case! */ if(!enc) return CURLUE_OUT_OF_MEMORY; - if(plusencode) { - /* space to plus */ - i = part; - for(o = enc; *i; ++o, ++i) - *o = (*i == ' ') ? '+' : *i; - *o = 0; /* zero terminate */ - part = strdup(enc); - if(!part) { - free(enc); - return CURLUE_OUT_OF_MEMORY; - } - free_part = true; - } for(i = part, o = enc; *i; i++) { if(Curl_isunreserved(*i) || ((*i == '/') && urlskipslash) ||