Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

User-Agent header no longer needs a leading space

  • Loading branch information...
commit c24b5051c0fd6d215ed9ba385f04aed4d12d8852 1 parent 23181d6
@benofbrown benofbrown authored stbuehler committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/weighttp.c
View
2  src/weighttp.c
@@ -159,7 +159,7 @@ static char *forge_request(char *url, char keep_alive, char **host, uint16_t *po
continue;
}
len += strlen(headers[i]) + strlen("\r\n");
- if (strncmp(headers[i], "User-Agent: ", sizeof("User-Agent: ")-1) == 0)
+ if (strncmp(headers[i], "User-Agent:", sizeof("User-Agent:")-1) == 0)
have_user_agent = 1;
}
Please sign in to comment.
Something went wrong with that request. Please try again.