Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
fix: response status code on webserver with mod example
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
  • Loading branch information
dbluhm committed Oct 11, 2021
1 parent 7e8078c commit 1de36bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/webserver_with_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def main():
async def handle(request):
"""aiohttp handle POST."""
await conn.handle(await request.read())
return web.Response(status=201)
return web.Response(status=202)

app = web.Application()
app.add_routes([web.post("/", handle)])
Expand Down

0 comments on commit 1de36bb

Please sign in to comment.