Author: adrian.chadd
Date: Tue Apr 28 16:33:49 2009
New Revision: 14008

Modified:
    branches/LUSCA_HEAD/libhttp/HttpHeaderParse.c
    branches/LUSCA_HEAD/libhttp/HttpHeaderParse.h

Log:
Include HttpHeader in the parsing - it'll be needed to "create" http header  
entries
from.



Modified: branches/LUSCA_HEAD/libhttp/HttpHeaderParse.c
==============================================================================
--- branches/LUSCA_HEAD/libhttp/HttpHeaderParse.c       (original)
+++ branches/LUSCA_HEAD/libhttp/HttpHeaderParse.c       Tue Apr 28 16:33:49 2009
@@ -191,7 +191,7 @@
            }
            break;              /* terminating blank line */
        }
-       e = httpHeaderEntryParseCreate(field_start, field_end);
+       e = httpHeaderEntryParseCreate(hdr, field_start, field_end);
        if (NULL == e) {
            debug(55, 1) ("WARNING: unparseable HTTP header field {%.*s}\n",
                charBufferSize(field_start, field_end), field_start);
@@ -222,7 +222,7 @@

  /* parses and inits header entry, returns new entry on success */
  HttpHeaderEntry *
-httpHeaderEntryParseCreate(const char *field_start, const char *field_end)
+httpHeaderEntryParseCreate(HttpHeader *hdr, const char *field_start, const  
char *field_end)
  {
      HttpHeaderEntry *e;
      int id;
@@ -250,6 +250,7 @@
        if (!name_len)
            return NULL;
      }
+
      /* now we know we can parse it */



Modified: branches/LUSCA_HEAD/libhttp/HttpHeaderParse.h
==============================================================================
--- branches/LUSCA_HEAD/libhttp/HttpHeaderParse.h       (original)
+++ branches/LUSCA_HEAD/libhttp/HttpHeaderParse.h       Tue Apr 28 16:33:49 2009
@@ -3,7 +3,7 @@


  extern int httpHeaderParse(HttpHeader * hdr, const char *header_start,  
const char *header_end);
-extern HttpHeaderEntry * httpHeaderEntryParseCreate(const char  
*field_start, const char *field_end);
+extern HttpHeaderEntry * httpHeaderEntryParseCreate(HttpHeader *hdr, const  
char *field_start, const char *field_end);
  extern int httpHeaderParseInt(const char *start, int *val);
  extern int httpHeaderParseSize(const char *start, squid_off_t * sz);
  extern void httpHeaderNoteParsedEntry(http_hdr_type id, String context,  
int error);

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to