Revision: 14642
Author: adrian.chadd
Date: Sun May 9 06:37:25 2010
Log: Issue #108 - use the new size parser to eliminate needing the String.
http://code.google.com/p/lusca-cache/source/detail?r=14642
Modified:
/branches/LUSCA_HEAD/libhttp/HttpHeaderParse.c
=======================================
--- /branches/LUSCA_HEAD/libhttp/HttpHeaderParse.c Sun May 9 06:33:36 2010
+++ /branches/LUSCA_HEAD/libhttp/HttpHeaderParse.c Sun May 9 06:37:25 2010
@@ -95,7 +95,7 @@
squid_off_t l1, l2;
HttpHeaderEntry *e2;
- if (!httpHeaderParseSize(strBuf(*value), &l1)) {
+ if (!httpHeaderParseSize2(strBuf2(*value), strLen2(*value), &l1)) {
debug(55, 1) ("WARNING: Unparseable content-length '%.*s'\n",
strLen2(*value), strBuf2(*value));
return -1;
}
@@ -125,7 +125,7 @@
}
/* Is the original entry parseable? If not, definitely error out. It
shouldn't be here */
- if (!httpHeaderParseSize(strBuf(e2->value), &l2)) {
+ if (!httpHeaderParseSize2(strBuf2(e2->value), strLen2(e2->value),
&l2)) {
debug(55, 1) ("WARNING: Unparseable content-length '%.*s'\n",
strLen2(*value), strBuf2(*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.