Skip to content

Conversation

@vamsii777
Copy link
Member

  • Enhanced FileDownloadResponse to handle case-insensitive header keys for Content-Disposition and Content-Type, improving robustness in file download scenarios.

  • Introduced unit tests for FileDownloadResponse to validate content type handling and filename extraction, ensuring accurate file metadata retrieval.

  • Added FilesHandlerTests to test file download functionality by record ID, confirming expected behavior and response integrity.

  • Closes TKTC-17 Fix FileDownloadResponse header parsing and Codable conformance issues #15

- Added `.envrc` and `.swiftpm/` to `.gitignore` for better environment management.
- Enhanced `FileDownloadResponse` to handle case-insensitive header keys for `Content-Disposition` and `Content-Type`, improving robustness in file download scenarios.
- Introduced unit tests for `FileDownloadResponse` to validate content type handling and filename extraction, ensuring accurate file metadata retrieval.
- Added `FilesHandlerTests` to test file download functionality by record ID, confirming expected behavior and response integrity.
@vamsii777 vamsii777 self-assigned this Jul 12, 2025
- Cleaned up whitespace in `FileDownloadResponse` for better readability.
- Adjusted import order in `FilesHandlerTests` for consistency.
- Enhanced assertions in `testDownloadFileByRecordId` to ensure clarity and accuracy.
- Added trailing commas in header dictionaries in `FileDownloadModelsTests` for improved syntax consistency.
@vamsii777 vamsii777 merged commit 1608735 into main Jul 12, 2025
4 of 5 checks passed
@vamsii777 vamsii777 deleted the fix branch November 17, 2025 07:32
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.

TKTC-17 Fix FileDownloadResponse header parsing and Codable conformance issues

2 participants