Skip to content

Commit 99a3d37

Browse files
committed
Add Plash header
1 parent 2ed8e6a commit 99a3d37

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

nbs/00_core.ipynb

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
" raise FileNotFoundError(\"Plash config not found. Please run plash_login and try again.\")\n",
7272
" cookies = Path(cookie_file).read_json()\n",
7373
" client.cookies.update(cookies)\n",
74+
" client.headers.update({'X-PLASH': 'true'})\n",
7475
" return client"
7576
]
7677
},

plash_cli/core.py

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def get_client(cookie_file):
2727
raise FileNotFoundError("Plash config not found. Please run plash_login and try again.")
2828
cookies = Path(cookie_file).read_json()
2929
client.cookies.update(cookies)
30+
client.headers.update({'X-PLASH': True})
3031
return client
3132

3233
# %% ../nbs/00_core.ipynb 6

0 commit comments

Comments
 (0)