diff options
author | Dan Winship <danw@src.gnome.org> | 2007-09-25 00:23:17 +0000 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2007-09-25 00:23:17 +0000 |
commit | b8b3779563f8f49a81b0bf117ba8f0256671ee14 (patch) | |
tree | 96bb2af2c684954845e27677c41f68d88bda5d78 /libsoup/soup-headers.c | |
parent | 26c8210d5eb59e9f0f062ca3503dd32ff5a4614c (diff) | |
download | libsoup-b8b3779563f8f49a81b0bf117ba8f0256671ee14.tar.gz |
minor rfc850-date parsing improvement suggested by RFC2616 19.3.
* libsoup/soup-date.c (soup_date_parse): minor rfc850-date parsing
improvement suggested by RFC2616 19.3.
* libsoup/soup-headers.c (soup_headers_parse_request): allow
erroneous trailing whitespace after HTTP version. #475169
* libsoup/soup-message-server-io.c (parse_request_headers): fix
the parsing of the Host header to assume it already includes the
port (which it should; the only reason this ever worked is because
SoupUri ignores the second port number when parse_request_headers
generates a URL like "http://localhost:9999:9999/").
* tests/header-parsing.c (reqtests): add a test for #475169
svn path=/trunk/; revision=933
Diffstat (limited to 'libsoup/soup-headers.c')
-rw-r--r-- | libsoup/soup-headers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsoup/soup-headers.c b/libsoup/soup-headers.c index 7c6122c9..dd7b5162 100644 --- a/libsoup/soup-headers.c +++ b/libsoup/soup-headers.c @@ -178,7 +178,7 @@ soup_headers_parse_request (const char *str, return FALSE; headers = version + 8; - if (headers < str + len && *headers == '\r') + while (headers < str + len && (*headers == '\r' || *headers == ' ')) headers++; if (headers >= str + len || *headers != '\n') return FALSE; |