| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…er middlewares can use their own "wrapping" Responses and see the status code.
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## master #2964 +/- ##
==========================================
+ Coverage 93.08% 93.18% +0.10%
==========================================
Files 43 43
Lines 4510 4507 -3
==========================================
+ Hits 4198 4200 +2
+ Misses 195 189 -6
- Partials 117 118 +1 ☔ View full report in Codecov by Sentry.
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Context.Json should not unwrap response and just wrap Response so other middlewares can use their own "wrapping" Responses and see the status code.
I found this during #2895 when to tried to create middleware that wraps existing response to own and status code setting did not work anymore with Context.JSON (always sends 200 to client).