Revision: 14608
Author: adrian.chadd
Date: Sat Apr 17 19:19:31 2010
Log: Issue #108 - fix bad refactor introduced by the previous commit.
http://code.google.com/p/lusca-cache/source/detail?r=14608
Modified:
/branches/LUSCA_HEAD/libhttp/HttpHeaderParse.c
=======================================
--- /branches/LUSCA_HEAD/libhttp/HttpHeaderParse.c Sat Apr 17 19:14:42 2010
+++ /branches/LUSCA_HEAD/libhttp/HttpHeaderParse.c Sat Apr 17 19:19:31 2010
@@ -118,13 +118,13 @@
static int
hh_check_other(HttpHeader *hdr, int id, String *name, String *value)
{
-
+ if (stringHasWhitespace(strBuf(*name))) {
debug(55, httpConfig_relaxed_parser <= 0 ? 1 : 2)
("WARNING: found whitespace in HTTP header name {%.*s}\n",
strLen2(*name), strBuf2(*name));
if (!httpConfig_relaxed_parser) {
return -1;
}
-
+ }
return 1;
}
@@ -139,7 +139,7 @@
if (id == HDR_CONTENT_LENGTH) {
return(hh_check_content_length(hdr, id, name, value));
}
- if (id == HDR_OTHER && stringHasWhitespace(strBuf(*name))) {
+ if (id == HDR_OTHER) {
return(hh_check_other(hdr, id, name, value));
}
return 1;
--
You received this message because you are subscribed to the Google Groups
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/lusca-commit?hl=en.