Author: adrian.chadd
Date: Thu May 28 02:08:44 2009
New Revision: 14076

Modified:
    playpen/LUSCA_HEAD_http_vector/libhttp/HttpHeader.c
    playpen/LUSCA_HEAD_http_vector/libhttp/HttpHeader.h

Log:
Return the http header entry created; this will be used for the parser now.



Modified: playpen/LUSCA_HEAD_http_vector/libhttp/HttpHeader.c
==============================================================================
--- playpen/LUSCA_HEAD_http_vector/libhttp/HttpHeader.c (original)
+++ playpen/LUSCA_HEAD_http_vector/libhttp/HttpHeader.c Thu May 28 02:08:44  
2009
@@ -334,12 +334,13 @@
        return e;
  }

-void
+HttpHeaderEntry *
  httpHeaderAddEntryString(HttpHeader *hdr, http_hdr_type id, const String  
*a, const String *v)
  {
        HttpHeaderEntry *e = httpHeaderAllocNewEntry(hdr);
        httpHeaderEntryCreateStr(e, id, a, v);
        httpHeaderAddInfo(hdr, e);
+       return e;
  }

  /*!

Modified: playpen/LUSCA_HEAD_http_vector/libhttp/HttpHeader.h
==============================================================================
--- playpen/LUSCA_HEAD_http_vector/libhttp/HttpHeader.h (original)
+++ playpen/LUSCA_HEAD_http_vector/libhttp/HttpHeader.h Thu May 28 02:08:44  
2009
@@ -54,7 +54,7 @@

  extern void httpHeaderAddEntryStr(HttpHeader *hdr, http_hdr_type id, const  
char *attrib, const char *value);
  extern HttpHeaderEntry * httpHeaderAddEntryStr2(HttpHeader *hdr,  
http_hdr_type id, const char *attrib, int attrib_len, const char *value,  
int value_len);
-extern void httpHeaderAddEntryString(HttpHeader *hdr, http_hdr_type id,  
const String *a, const String *v);
+extern HttpHeaderEntry * httpHeaderAddEntryString(HttpHeader *hdr,  
http_hdr_type id, const String *a, const String *v);

  extern void httpHeaderInsertEntryStr(HttpHeader *hdr, int pos,  
http_hdr_type id, const char *attrib, const char *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
-~----------~----~----~----~------~----~------~--~---

Reply via email to