villekr / ocpp-asgi

ocpp-asgi extends ocpp library to provide ASGI compliant interface for implementing OCPP Central System.
MIT License
20 stars 4 forks source link

Handle invalid http request with empty body #6 #10

Closed villekr closed 2 years ago

villekr commented 2 years ago

Respond with 400 if http request doesn't contain body.

codecov-commenter commented 2 years ago

Codecov Report

Base: 75.53% // Head: 74.68% // Decreases project coverage by -0.85% :warning:

Coverage data is based on head (c2dcda3) compared to base (4151d33). Patch coverage: 15.38% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #10 +/- ## ========================================== - Coverage 75.53% 74.68% -0.86% ========================================== Files 11 11 Lines 466 474 +8 ========================================== + Hits 352 354 +2 - Misses 114 120 +6 ``` | [Impacted Files](https://codecov.io/gh/villekr/ocpp-asgi/pull/10?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Ville+Kr) | Coverage Δ | | |---|---|---| | [ocpp\_asgi/app.py](https://codecov.io/gh/villekr/ocpp-asgi/pull/10/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Ville+Kr#diff-b2NwcF9hc2dpL2FwcC5weQ==) | `61.06% <15.38%> (-2.35%)` | :arrow_down: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Ville+Kr). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Ville+Kr)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.