swoole / swoole-src

🚀 Coroutine-based concurrency library for PHP
https://www.swoole.com
Apache License 2.0
18.27k stars 3.16k forks source link

Allow 451 HTTP status code for responses #5244

Closed abnegate closed 3 months ago

abnegate commented 4 months ago

Allow 451 HTTP status code for responses. Currently because the code is unsupported it will match the default case and return with 200 OK.

codecov[bot] commented 4 months ago

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (9c08e1a) 72.97% compared to head (81db5bb) 72.94%.

Files Patch % Lines
src/protocol/http.cc 0.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #5244 +/- ## ========================================== - Coverage 72.97% 72.94% -0.04% ========================================== Files 69 69 Lines 14858 14860 +2 ========================================== - Hits 10843 10839 -4 - Misses 4015 4021 +6 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.