Author: adrian.chadd
Date: Mon Feb  2 12:14:51 2009
New Revision: 13793

Modified:
    branches/LUSCA_HEAD/src/http.c

Log:
Eliminte strBuf()



Modified: branches/LUSCA_HEAD/src/http.c
==============================================================================
--- branches/LUSCA_HEAD/src/http.c      (original)
+++ branches/LUSCA_HEAD/src/http.c      Mon Feb  2 12:14:51 2009
@@ -435,12 +435,13 @@
        strListAdd(&vstr, name, ',');
        hdr = httpHeaderGetByName(&request->header, name);
        safe_free(name);
-       value = strBuf(hdr);
-       if (value) {
-           value = rfc1738_escape_part(value);
+       if (strIsNotNull(hdr)) {
+           const char *str = stringDupToC(&hdr);
+           value = rfc1738_escape_part(str);
            stringAppend(&vstr, "=\"", 2);
            stringAppend(&vstr, value, strlen(value));
            stringAppend(&vstr, "\"", 1);
+           safe_free(str);
        }
        stringClean(&hdr);
      }

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