Revision: 14615
Author: adrian.chadd
Date: Sat Apr 17 23:48:30 2010
Log: Issue #109 - remove unused parameters to the content length checking
function
http://code.google.com/p/lusca-cache/source/detail?r=14615
Modified:
/branches/LUSCA_HEAD/libhttp/HttpHeaderParse.c
=======================================
--- /branches/LUSCA_HEAD/libhttp/HttpHeaderParse.c Sat Apr 17 23:19:00 2010
+++ /branches/LUSCA_HEAD/libhttp/HttpHeaderParse.c Sat Apr 17 23:48:30 2010
@@ -80,7 +80,7 @@
static HttpHeaderEntry * httpHeaderEntryParseCreate(HttpHeader *hdr, const
char *field_start, const char *field_end);
static int
-hh_check_content_length(HttpHeader *hdr, int id, String *name, String
*value)
+hh_check_content_length(HttpHeader *hdr, String *value)
{
squid_off_t l1;
HttpHeaderEntry *e2;
@@ -88,7 +88,7 @@
debug(55, 1) ("WARNING: Unparseable content-length '%.*s'\n",
strLen2(*value), strBuf2(*value));
return -1;
}
- e2 = httpHeaderFindEntry(hdr, id);
+ e2 = httpHeaderFindEntry(hdr, HDR_CONTENT_LENGTH);
if (e2 && strCmp(*value, strBuf(e2->value)) != 0) {
squid_off_t l2;
debug(55, httpConfig_relaxed_parser <= 0 ? 1 : 2) ("WARNING: found two
conflicting content-length headers\n");
@@ -137,7 +137,7 @@
httpHeaderParseCheckEntry(HttpHeader *hdr, int id, String *name, String
*value)
{
if (id == HDR_CONTENT_LENGTH) {
- return(hh_check_content_length(hdr, id, name, value));
+ return(hh_check_content_length(hdr, value));
}
if (id == HDR_OTHER) {
return(hh_check_other(hdr, id, name, value));
--
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.