Skip to content

Commit 633fd0a

Browse files
oliver-sandersSteven Silvester
authored andcommitted
pytest_plugin: allow user specified headers in jp_ws_fetch
1 parent 49d5772 commit 633fd0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_server/pytest_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def client_fetch(*parts, headers={}, params={}, **kwargs):
368368
# Add auth keys to header
369369
headers.update(jp_auth_header)
370370
# Make request.
371-
req = tornado.httpclient.HTTPRequest(url, headers=jp_auth_header, connect_timeout=120)
371+
req = tornado.httpclient.HTTPRequest(url, headers=headers, connect_timeout=120)
372372
return tornado.websocket.websocket_connect(req)
373373

374374
return client_fetch

0 commit comments

Comments
 (0)