File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -218,9 +218,10 @@ def with_user_session_token(self, token: str) -> Client:
218218 >>> @reactive.calc
219219 >>> def visitor_client():
220220 ... ## read the user session token and generate a new client
221- ... user_session_token = session.http_conn.headers.get("Posit-Connect-User-Session-Token")
221+ ... user_session_token = session.http_conn.headers.get(
222+ ... "Posit-Connect-User-Session-Token"
223+ ... )
222224 ... return client.with_user_session_token(user_session_token)
223- ...
224225 >>> @render.text
225226 >>> def user_profile():
226227 ... # fetch the viewer's profile information
@@ -237,7 +238,6 @@ def with_user_session_token(self, token: str) -> Client:
237238 ... return base_client.with_user_session_token(token)
238239 ... else:
239240 ... return base_client
240- ...
241241 >>> # Simulate request without header
242242 >>> mock_request = requests.Request()
243243 >>> client = get_client(mock_request) # Returns original client
You can’t perform that action at this time.
0 commit comments