Skip to content

Harden curl JSON and header handling#73

Draft
toby-bridges wants to merge 1 commit into
masterfrom
codex/transport-json-hardening
Draft

Harden curl JSON and header handling#73
toby-bridges wants to merge 1 commit into
masterfrom
codex/transport-json-hardening

Conversation

@toby-bridges

Copy link
Copy Markdown
Owner

Summary

  • Return a structured curl _http_error when POST responses are not JSON instead of raising JSONDecodeError.
  • Make curl model-list fallback degrade to [] on invalid JSON.
  • Escape curl config header keys/values and keep standalone generation aligned.

Tests

  • python -m pytest tests/test_client.py tests/test_dual_distribution_parity.py -q
  • python scripts/build-standalone.py --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant