Fix GZipMiddleware code block linking to TrustedHostMiddleware#1138
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1138 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 223 223
Lines 6642 6642
=========================================
Hits 6642 6642 Continue to review full report at Codecov.
|
|
is it possible still wrong ? |
|
@bilencekic based on the content in https://github.com/tiangolo/fastapi/blob/master/fastapi/middleware/gzip.py which imports from @tiangolo Could you have a look at this. I've seen 4 other PR fixing the same issue ^^ |
|
@arimbr yes correct it is working i am using like that but documentation has changed to |
|
Right! Thanks, It is just syntactic sugar introduced in #1064 where this issue was also introduced. |
f01fd73 to
f274f71
Compare
|
Great, thank you @arimbr ! 🔍 🕵️♂️ 🍰 🚀 And thanks for the discussion here everyone 👏 🍰 ☕ |
In https://fastapi.tiangolo.com/advanced/middleware/#gzipmiddleware
BEFORE
AFTER