mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-17 01:02:12 +00:00
Removed debug information.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10866 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
9c0f8adad6
commit
988c34b019
@ -308,29 +308,6 @@ int http_parse_response(char *buf, ssize_t buf_len, http_response_t *response)
|
|||||||
sm.buf = buf;
|
sm.buf = buf;
|
||||||
sm.buf_len = buf_len;
|
sm.buf_len = buf_len;
|
||||||
|
|
||||||
fprintf(
|
|
||||||
stderr,
|
|
||||||
"ERRORS\n"
|
|
||||||
"VERSION = %d\n"
|
|
||||||
"STATUS_CODE = %d\n"
|
|
||||||
"PHRASE = %d\n"
|
|
||||||
"HEADER = %d\n"
|
|
||||||
"NEWLINE = %d\n"
|
|
||||||
"SYNTAX_ERROR = %d\n",
|
|
||||||
VERSION,
|
|
||||||
STATUS_CODE,
|
|
||||||
PHRASE,
|
|
||||||
HEADER,
|
|
||||||
NEWLINE,
|
|
||||||
SYNTAX_ERROR
|
|
||||||
);
|
|
||||||
|
|
||||||
fprintf(
|
|
||||||
stderr,
|
|
||||||
"buf = \"%s\"\n",
|
|
||||||
buf
|
|
||||||
);
|
|
||||||
|
|
||||||
pos = sm.pos;
|
pos = sm.pos;
|
||||||
token = get_next_token(&sm);
|
token = get_next_token(&sm);
|
||||||
if(token != VERSION){
|
if(token != VERSION){
|
||||||
@ -403,12 +380,6 @@ int http_parse_response(char *buf, ssize_t buf_len, http_response_t *response)
|
|||||||
if(token != HEADER && token != PHRASE && token != STATUS_CODE) break;
|
if(token != HEADER && token != PHRASE && token != STATUS_CODE) break;
|
||||||
}while(token != SYNTAX_ERROR);
|
}while(token != SYNTAX_ERROR);
|
||||||
|
|
||||||
fprintf(
|
|
||||||
stderr,
|
|
||||||
"HEADERS = %d\n",
|
|
||||||
nt
|
|
||||||
);
|
|
||||||
|
|
||||||
if(nt != 0){
|
if(nt != 0){
|
||||||
response->headers = (http_header_t *)malloc(sizeof(http_header_t)*nt);
|
response->headers = (http_header_t *)malloc(sizeof(http_header_t)*nt);
|
||||||
if(response->headers == NULL){
|
if(response->headers == NULL){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user