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
{{ message }}
Repository navigation
Commit 5db71c1
Browse filesBrowse the repository at this point in the historyBrowse files
Restore SSE request headers via AsyncClient.sse(); fix example fallout
httpx-sse's aconnect_sse() always sent Accept: text/event-stream and
Cache-Control: no-store; the swap to bare client.stream() dropped both.
Open the legacy SSE GET and the streamable HTTP GET/resumption/
reconnection streams with AsyncClient.sse(), which injects those
headers (explicit caller headers still take precedence), and update
the mocked sse_client test to drive the new call.
Example fixes from the same review pass:
- simple-chatbot: catch httpx2.HTTPError instead of RequestError so
raise_for_status() failures take the handled path (the
HTTPStatusError isinstance branch was unreachable), and drop the
Raises section the method never honoured.
- sse-polling-client: suppress the httpcore2 logger; httpcore is no
longer in the dependency tree, so the old suppression was a no-op.
0 commit comments