Python: Model await request.post() as MultiDictProxy

as highlight as being quite easy to do by @yoff 👍
This commit is contained in:
Rasmus Wriedt Larsen
2021-06-11 14:53:30 +02:00
parent 97486b448a
commit 53f7633662
2 changed files with 13 additions and 1 deletions

View File

@@ -104,7 +104,7 @@ async def test_taint(request: web.Request): # $ requestHandler
# multidict.MultiDictProxy[str] (see `multidict` framework tests)
await request.post(), # $ tainted
(await request.post()).getone("key"), # $ MISSING: tainted
(await request.post()).getone("key"), # $ tainted
)
import yarl