Skip to content

fix: accept case-insensitive export content types - #45

Merged
mohsen1 merged 1 commit into
prooflinedev:mainfrom
Mekdelawite:fix/case-insensitive-export-content-type
Nov 17, 2026
Merged

mohsen1 merged 1 commit into
prooflinedev:mainfrom
Mekdelawite:fix/case-insensitive-export-content-type

Conversation

@Mekdelawite

Copy link
Copy Markdown

Summary

  • Normalize HTTP Content-Type media types to lowercase before comparing them with the expected export format.
  • Add regression tests for mixed-case CSV and NDJSON content types.
  • Verify behavior for both synchronous and asynchronous clients.

Testing

  • python -m pytest -q — 144 passed
  • python -m ruff check proofline/exports.py tests/test_http.py — passed
  • python -m ruff format --check proofline/exports.py tests/test_http.py — passed
  • git diff --check — passed

Motivation

HTTP media type values are case-insensitive. This change prevents valid export responses from being rejected because their Content-Type header uses different capitalization.

@mohsen1
mohsen1 merged commit 7089506 into prooflinedev:main Nov 17, 2026
1 check passed
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.

2 participants