diff --git a/src/url.c b/src/url.c

index 47e31b5fcbeeecb5bc3962585311b20e3518bb73..dabf45f234e1e0957007b94ef12ef1125250dfea 100644

--- a/src/url.c

+++ b/src/url.c

@@ -1361,19 +1361,6 @@ bool free_part = false;

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) ||