diff options
| author | liuwentan <[email protected]> | 2024-01-04 18:41:09 +0800 |
|---|---|---|
| committer | liuwentan <[email protected]> | 2024-01-04 18:41:09 +0800 |
| commit | 643cb8e408f8f026237df156f0242b8e2f85c266 (patch) | |
| tree | ec374828ed990cdaac2814482e05d320a493bcc3 /src/http_decoder/http_decoder_half.c | |
| parent | 9c7e56f9e244328ce7fc99409ec0b866a0b3da99 (diff) | |
[HTTP_DECODER]bugfix for http proxy
Diffstat (limited to 'src/http_decoder/http_decoder_half.c')
| -rw-r--r-- | src/http_decoder/http_decoder_half.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http_decoder/http_decoder_half.c b/src/http_decoder/http_decoder_half.c index b95486a..2128025 100644 --- a/src/http_decoder/http_decoder_half.c +++ b/src/http_decoder/http_decoder_half.c @@ -614,6 +614,7 @@ int http_decoder_half_parse(struct http_decoder_half *half, void *http_ev_ctx, switch (half->error) { case HPE_OK: case HPE_PAUSED_UPGRADE: + llhttp_resume_after_upgrade(&half->parser); ret = 0; break; default: @@ -622,7 +623,7 @@ int http_decoder_half_parse(struct http_decoder_half *half, void *http_ev_ctx, } if (ret < 0) { - printf("llhttp_execute parse error: %s %s\n", + fprintf(stderr, "llhttp_execute parse error: %s %s\n", llhttp_errno_name(half->error), half->parser.reason); return -1; } |
