Skip to content
Snippets Groups Projects
Commit 9ef5f5ef authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

This should no longer send empty cookies to the server

parent 9280c208
No related branches found
No related tags found
No related merge requests found
......@@ -229,13 +229,15 @@ UrgError http(struct UrlData *data, char *ppath, char *host, long *bytecount)
int count=0;
/* now loop through all cookies that matched */
while(co) {
if(0 == count) {
if(co->value && strlen(co->value)) {
if(0 == count) {
sendf(data->firstsocket, data,
"Cookie: ");
}
count++;
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 */
}
if(count) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment