diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-12-24 23:04:28 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-12-24 23:04:28 +0200 |
commit | cf93928fe9cb4ce1600f2f472191ce88e94ee0d7 (patch) | |
tree | 2d1e7c61ad1c1476986d6a13332c69d2b84c91f9 /src/gmrequest.c | |
parent | 738a267b8c22172180e549b5a9a14ed32f6bd16d (diff) |
Fixed percent-encoding the query string
Good old mutable vs. non-mutable argument confusion. The encoded return value was ignored (and leaked).
Diffstat (limited to 'src/gmrequest.c')
-rw-r--r-- | src/gmrequest.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gmrequest.c b/src/gmrequest.c index 3eb57cec..5b005fbb 100644 --- a/src/gmrequest.c +++ b/src/gmrequest.c | |||
@@ -515,7 +515,9 @@ void submit_GmRequest(iGmRequest *d) { | |||
515 | set_Atomic(&d->allowUpdate, iTrue); | 515 | set_Atomic(&d->allowUpdate, iTrue); |
516 | iGmResponse *resp = d->resp; | 516 | iGmResponse *resp = d->resp; |
517 | clear_GmResponse(resp); | 517 | clear_GmResponse(resp); |
518 | // printf("[GmRequest] URL: %s\n", cstr_String(&d->url)); | 518 | #if !defined (NDEBUG) |
519 | printf("[GmRequest] URL: %s\n", cstr_String(&d->url)); | ||
520 | #endif | ||
519 | iUrl url; | 521 | iUrl url; |
520 | init_Url(&url, &d->url); | 522 | init_Url(&url, &d->url); |
521 | /* Check for special schemes. */ | 523 | /* Check for special schemes. */ |