Skip to content

Commit

Permalink
fix: omit strict attribute from response serialization
Browse files Browse the repository at this point in the history
The `strict` attribute of `HTTPResponse` is gone in `urllib3>=2.0`.
In addition it has no effect, at least when running under Python 3.
  • Loading branch information
dairiki committed May 24, 2023
1 parent b6e0c06 commit 51b752b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion cachecontrol/serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def dumps(self, request, response, body=None):
u"status": response.status,
u"version": response.version,
u"reason": text_type(response.reason),
u"strict": response.strict,
u"decode_content": response.decode_content,
}
}
Expand Down
1 change: 0 additions & 1 deletion tests/test_vary.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def cached_equal(self, cached, resp):
cached.status == resp.raw.status,
cached.version == resp.raw.version,
cached.reason == resp.raw.reason,
cached.strict == resp.raw.strict,
cached.decode_content == resp.raw.decode_content,
]

Expand Down

0 comments on commit 51b752b

Please sign in to comment.