diff options
| author | 2019-09-09 14:53:11 +0100 | |
|---|---|---|
| committer | 2019-09-09 14:53:11 +0100 | |
| commit | 5ef2b7af27c10ae270a25dcd89dd02f74baa363d (patch) | |
| tree | 1c06aaa112c9f120e622aa18b538ac2d27850fe8 | |
| parent | still default to iso-latin-1 if no on-page or in-header content-type is present (diff) | |
| signature | ||
'str.split' -> 's.split'
| -rw-r--r-- | src/utils/http.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/http.py b/src/utils/http.py index b20b2264..46dcc1ae 100644 --- a/src/utils/http.py +++ b/src/utils/http.py @@ -60,7 +60,7 @@ class Response(object): def _meta_content(s: str) -> typing.Dict[str, str]: out = {} - for keyvalue in str.split(";"): + for keyvalue in s.split(";"): key, _, value = keyvalue.strip().partition("=") out[key] = value return out |
