docs: fix function name mismatch in python route example (#23010)

This commit is contained in:
Dmitry Leonov 2023-05-14 17:52:11 +03:00 committed by GitHub
parent 4664156511
commit aef7a2817d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -264,7 +264,7 @@ page.route("**/*", route -> {
```python async
# Handle GET requests.
def handle_post(route):
def handle_get(route):
if route.request.method != "GET":
route.fallback()
return
@ -285,7 +285,7 @@ await page.route("**/*", handle_post)
```python sync
# Handle GET requests.
def handle_post(route):
def handle_get(route):
if route.request.method != "GET":
route.fallback()
return