Skip to content

Commit

Permalink
pytest_plugin: allow user specified headers in jp_ws_fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-sanders committed Sep 8, 2021
1 parent 49d5772 commit 7c41332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_server/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def client_fetch(*parts, headers={}, params={}, **kwargs):
# Add auth keys to header
headers.update(jp_auth_header)
# Make request.
req = tornado.httpclient.HTTPRequest(url, headers=jp_auth_header, connect_timeout=120)
req = tornado.httpclient.HTTPRequest(url, headers=headers, connect_timeout=120)
return tornado.websocket.websocket_connect(req)

return client_fetch
Expand Down

0 comments on commit 7c41332

Please sign in to comment.