Skip to content

Commit d13acc1

Browse files
added forwarding user agent with python
1 parent 9a28462 commit d13acc1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/routes/docs/products/auth/server-side-rendering/+page.markdoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,9 @@ client.setForwardedUserAgent(req.headers['user-agent']);
430430
<?php
431431
$client->setForwardedUserAgent($_SERVER['HTTP_USER_AGENT']);
432432
```
433+
```python
434+
client.set_forwarded_user_agent(request.headers.get('user-agent'))
435+
```
433436
{% /multicode %}
434437

435438
# OAuth2 {% #oauth2 %}

0 commit comments

Comments
 (0)