Skip to content

Commit

Permalink
Parse OWS before header values correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
alexshpilkin committed Oct 1, 2019
1 parent 44794a2 commit 3dfe337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uacme.c
Expand Up @@ -72,7 +72,7 @@ typedef struct acme
char *find_header(const char *headers, const char *name)
{
char *regex = NULL;
if (asprintf(&regex, "^%s: (.*)\r\n", name) < 0)
if (asprintf(&regex, "^%s:[ \t]*(.*)\r\n", name) < 0)
{
warnx("find_header: asprintf failed");
return NULL;
Expand Down

0 comments on commit 3dfe337

Please sign in to comment.