Commit 9ef5f5ef authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

This should no longer send empty cookies to the server

parent 9280c208
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -229,6 +229,7 @@ UrgError http(struct UrlData *data, char *ppath, char *host, long *bytecount)
      int count=0;
      /* now loop through all cookies that matched */
      while(co) {
        if(co->value && strlen(co->value)) {
          if(0 == count) {
            sendf(data->firstsocket, data,
                  "Cookie: ");
@@ -236,6 +237,7 @@ UrgError http(struct UrlData *data, char *ppath, char *host, long *bytecount)
          count++;
          sendf(data->firstsocket, data,
                "%s=%s;", co->name, co->value);
        }
        co = co->next; /* next cookie please */
      }
      if(count) {