[xiph-cvs] cvs commit: httpp httpp.c httpp.h
Michael Smith
msmith at xiph.org
Fri Aug 16 07:22:44 PDT 2002
msmith 02/08/16 10:22:44
Modified: . httpp.c httpp.h
Log:
bugfixes for httpp_parse_response
Revision Changes Path
1.8 +2 -3 httpp/httpp.c
Index: httpp.c
===================================================================
RCS file: /usr/local/cvsroot/httpp/httpp.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- httpp.c 5 Aug 2002 14:48:03 -0000 1.7
+++ httpp.c 16 Aug 2002 14:22:44 -0000 1.8
@@ -162,15 +162,14 @@
return 0;
}
+ httpp_setvar(parser, HTTPP_VAR_ERROR_CODE, resp_code);
code = atoi(resp_code);
if(code < 200 || code >= 300) {
httpp_setvar(parser, HTTPP_VAR_ERROR_MESSAGE, message);
- free(data);
- return 0;
}
httpp_setvar(parser, HTTPP_VAR_URI, uri);
- httpp_setvar(parser, HTTPP_VAR_REQ_TYPE, "RELAY");
+ httpp_setvar(parser, HTTPP_VAR_REQ_TYPE, "NONE");
parse_headers(parser, line, lines);
<p><p>1.4 +1 -0 httpp/httpp.h
Index: httpp.h
===================================================================
RCS file: /usr/local/cvsroot/httpp/httpp.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- httpp.h 5 Aug 2002 14:48:03 -0000 1.3
+++ httpp.h 16 Aug 2002 14:22:44 -0000 1.4
@@ -13,6 +13,7 @@
#define HTTPP_VAR_URI "__uri"
#define HTTPP_VAR_REQ_TYPE "__req_type"
#define HTTPP_VAR_ERROR_MESSAGE "__errormessage"
+#define HTTPP_VAR_ERROR_CODE "__errorcode"
typedef enum httpp_request_type_tag {
httpp_req_none, httpp_req_get, httpp_req_post, httpp_req_head, httpp_req_source, httpp_req_play, httpp_req_stats, httpp_req_unknown
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list