X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=parsers.c;h=02e01173d72bedc02050b779e106504390c1fb95;hb=fc38802c68b57157c6e3c763d15dbd9f8e85e170;hp=eef1fd613bd427503a26893df9e21663fe9afdcf;hpb=47bc727e644937b3d3cf8df692815038b169f7a6;p=privoxy.git diff --git a/parsers.c b/parsers.c index eef1fd61..02e01173 100644 --- a/parsers.c +++ b/parsers.c @@ -1,4 +1,4 @@ -const char parsers_rcs[] = "$Id: parsers.c,v 1.35 2001/10/09 22:39:21 jongfoster Exp $"; +const char parsers_rcs[] = "$Id: parsers.c,v 1.36 2001/10/13 12:51:51 joergs Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/parsers.c,v $ @@ -41,6 +41,12 @@ const char parsers_rcs[] = "$Id: parsers.c,v 1.35 2001/10/09 22:39:21 jongfoster * * Revisions : * $Log: parsers.c,v $ + * Revision 1.36 2001/10/13 12:51:51 joergs + * Removed client_host, (was only required for the old 2.0.2-11 http://noijb. + * force-load), instead crumble Host: and add it (again) in client_host_adder + * (in case we get a HTTP/1.0 request without Host: header and forward it to + * a HTTP/1.1 server/proxy). + * * Revision 1.35 2001/10/09 22:39:21 jongfoster * assert.h is also required under Win32, so moving out of #ifndef _WIN32 * block. @@ -555,7 +561,8 @@ char *get_header(struct client_state *csp) * headers (client or server) * 3 : csp = Current client state (buffers, headers, etc...) * - * Returns : Single pointer to a fully formed header. + * Returns : Single pointer to a fully formed header, or NULL + * on out-of-memory error. * *********************************************************************/ char *sed(const struct parsers pats[], void (* const more_headers[])(struct client_state *), struct client_state *csp) @@ -591,7 +598,7 @@ char *sed(const struct parsers pats[], void (* const more_headers[])(struct clie hdr = list_to_text(csp->headers); - return(hdr); + return hdr; }