mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
This should no longer send empty cookies to the server
This commit is contained in:
parent
9280c208d3
commit
9ef5f5ef5a
12
lib/http.c
12
lib/http.c
@ -229,13 +229,15 @@ UrgError http(struct UrlData *data, char *ppath, char *host, long *bytecount)
|
|||||||
int count=0;
|
int count=0;
|
||||||
/* now loop through all cookies that matched */
|
/* now loop through all cookies that matched */
|
||||||
while(co) {
|
while(co) {
|
||||||
if(0 == count) {
|
if(co->value && strlen(co->value)) {
|
||||||
|
if(0 == count) {
|
||||||
|
sendf(data->firstsocket, data,
|
||||||
|
"Cookie: ");
|
||||||
|
}
|
||||||
|
count++;
|
||||||
sendf(data->firstsocket, data,
|
sendf(data->firstsocket, data,
|
||||||
"Cookie: ");
|
"%s=%s;", co->name, co->value);
|
||||||
}
|
}
|
||||||
count++;
|
|
||||||
sendf(data->firstsocket, data,
|
|
||||||
"%s=%s;", co->name, co->value);
|
|
||||||
co = co->next; /* next cookie please */
|
co = co->next; /* next cookie please */
|
||||||
}
|
}
|
||||||
if(count) {
|
if(count) {
|
||||||
|
Loading…
Reference in New Issue
Block a user