Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update request.md - nitpick #2946

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion guide/content/en/guide/basics/request.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ The `request.ctx` object by default is a `SimpleNamespace` object allowing you t

This is often used to store items like authenticated user details. We will get more into [middleware](./middleware.md) later, but here is a simple example.

```python
@app.on_request
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the line you have removed should be kept but that the one at line 164 (above) be deleted. The ### heading and text paragraph in between lines 164 and 170 are Markdown, not Python.

async def run_before_handler(request):
request.ctx.user = await fetch_user_by_token(request.token)
Expand Down
Loading