Skip to content

Commit

Permalink
README fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
luhn committed Sep 15, 2021
1 parent 2c60e8d commit 440d35a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ For example, here's an event subscriber that adds the current user ID to the hea

```python
def add_headers(event):
headers = event.options.setdefault('headers')
headers = event.options.setdefault('headers', {})
headers.setdefault('user_id', event.request.authenticated_userid)

def includeme(config):
Expand Down

0 comments on commit 440d35a

Please sign in to comment.