mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-01 18:27:18 +00:00
Update savehar.py
Use `.get` when retrieving "path" from the `attrs` cookie dict. This avoids the occasional `KeyError`.
This commit is contained in:
parent
d6986d43cd
commit
ad4ac04d2f
1 changed files with 1 additions and 1 deletions
|
|
@ -281,7 +281,7 @@ class SaveHar:
|
|||
cookie = {
|
||||
"name": name,
|
||||
"value": value,
|
||||
"path": attrs["path"],
|
||||
"path": attrs.get("path", "/"),
|
||||
"domain": attrs.get("domain", ""),
|
||||
"httpOnly": "httpOnly" in attrs,
|
||||
"secure": "secure" in attrs,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue