FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: accept case-insensitive export content types by Mekdelawite · Pull Request #45 · prooflinedev/sdk-python · GitHub

Repository navigation

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

Open
Mekdelawite wants to merge 1 commit into
prooflinedev:mainfrom
Mekdelawite:fix/case-insensitive-export-content-type
Open

Mekdelawite wants to merge 1 commit into
prooflinedev:mainfrom
Mekdelawite:fix/case-insensitive-export-content-type

Conversation

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.

This branch has not been deployed

No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL