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
When decoding a streaming response, the presence of colons (:) in the headers causes the process to fail. This results in an error, making it impossible to handle certain responses with specific header formats.
Steps to Reproduce
Use the following code to simulate a streaming response with colons in the headers:
The headers in the response contain colons, which triggers the error.
Expected Behavior
The streaming response is cached on the first request. On the following requests, the response is retrieved from cache and decoded correctly, even if colons are present in the headers.
Actual Behavior
The response is saved to the cache, but the decoding process fails, resulting in the following error:
Description of the Issue
When decoding a streaming response, the presence of colons (:) in the headers causes the process to fail. This results in an error, making it impossible to handle certain responses with specific header formats.
Steps to Reproduce
Use the following code to simulate a streaming response with colons in the headers:
The headers in the response contain colons, which triggers the error.
Expected Behavior
The streaming response is cached on the first request. On the following requests, the response is retrieved from cache and decoded correctly, even if colons are present in the headers.
Actual Behavior
The response is saved to the cache, but the decoding process fails, resulting in the following error:
Environment
Proposed Solution
When decoding the raw value and splitting
status_code
fromheaders
, use only a single split.cashews/contrib/_starlette.py
The text was updated successfully, but these errors were encountered: