diff options
| author | lishu <[email protected]> | 2019-11-26 17:40:49 +0800 |
|---|---|---|
| committer | lishu <[email protected]> | 2019-11-26 17:40:49 +0800 |
| commit | 9126414bb62179abab4d77b7b59f792f28b9c3ce (patch) | |
| tree | ffabc765542b521cbe8dca5a7fd37ba1c9c1a165 /src/HTTP_Parser.c | |
| parent | 7c5f60dcf969de028203b14a09a57c9f38be297e (diff) | |
add libhttp_parser.a
Diffstat (limited to 'src/HTTP_Parser.c')
| -rw-r--r-- | src/HTTP_Parser.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/HTTP_Parser.c b/src/HTTP_Parser.c index cbb8437..6a4384a 100644 --- a/src/HTTP_Parser.c +++ b/src/HTTP_Parser.c @@ -76,8 +76,8 @@ int http_host_parser(const char* buf, uint32 buflen, int http_dir, char** host) const char* pbuf = buf+offset; uint32 pbuflen = buflen-offset; - printf("buf=====================================================\n"); - printf("%s\n", buf); + //printf("buf=====================================================\n"); + //printf("%s\n", buf); // Ϊ�ṹ�������ڴ� http_parser *parser = (http_parser*)calloc(1, sizeof(http_parser)); @@ -103,7 +103,7 @@ int http_host_parser(const char* buf, uint32 buflen, int http_dir, char** host) //ִ�н������� size_t parsed = http_parser_execute(parser, &http_setting, pbuf, (size_t)pbuflen); - printf("buflen: %d; parsed: %d\n", pbuflen, parsed); + //printf("buflen: %d; parsed: %d\n", pbuflen, parsed); if(((host_parser*)(parser->data))->is_http_flag == 1) { rec = 0; @@ -274,7 +274,7 @@ void http_test() { /*http_host_parser_test����*/ /* - http_host_parser_test(http_request, DIR_C2S); + http_host_parser_test(http_request, DIR_C2S); http_host_parser_test(http_request_no_host, DIR_C2S); http_host_parser_test(http_response, DIR_S2C); http_host_parser_test(http_request_CR, DIR_C2S); |
