You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
When using the _recorder functionality from the responses library to generate YAML files for testing, the recorded output includes both content_type and Content-Type in headers. This results in a RuntimeError during playback due to conflicting definitions, making it difficult to use recorded responses directly in tests without manual intervention.
Describe the bug
probably related to: #675
Summary:
When using the _recorder functionality from the responses library to generate YAML files for testing, the recorded output includes both content_type and Content-Type in headers. This results in a RuntimeError during playback due to conflicting definitions, making it difficult to use recorded responses directly in tests without manual intervention.
Additional context
This is an example recorded response
poetry show | grep responses responses 0.25.3
Version of
responses
0.25.3
Steps to Reproduce
Recording
Output
add from file
Error
Expected Result
Not raise
RuntimeError
Actual Result
RuntimeError: You cannot define both
content_typeand
headers[Content-Type]. Using the
content_typekwarg is recommended.
The text was updated successfully, but these errors were encountered: