Dolda2000 GitWeb
/
doldaconnect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f806697
)
Fixed HTTP-client query-string handling bug.
master
author
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 11 Nov 2019 01:57:09 +0000
(
02:57
+0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 11 Nov 2019 01:57:09 +0000
(
02:57
+0100)
common/http.c
patch
|
blob
|
blame
|
history
diff --git
a/common/http.c
b/common/http.c
index
3ac3b14
..
77799a3
100644
(file)
--- a/
common/http.c
+++ b/
common/http.c
@@
-224,8
+224,8
@@
static void consreq(struct htconn *cn)
}
if(*(cn->url->query)) {
addtobuf(cn->outbuf, '?');
- for(p = cn->url->
path
; *p; p++) {
- if(!(*p & 0x80) && (safechars[(int)*p] || (*p == '&')))
+ for(p = cn->url->
query
; *p; p++) {
+ if(!(*p & 0x80) && (safechars[(int)*p] || (*p == '&')
|| (*p == '=')
))
addtobuf(cn->outbuf, *p);
else
bprintf(cn->outbuf, "%%%02X", *p);