Skip to content

Add test to check content type header#464

Merged
Yang-33 merged 1 commit intoline:masterfrom
Yang-33:download-content-2
Apr 4, 2025
Merged

Add test to check content type header#464
Yang-33 merged 1 commit intoline:masterfrom
Yang-33:download-content-2

Conversation

@Yang-33
Copy link
Copy Markdown
Contributor

@Yang-33 Yang-33 commented Apr 4, 2025

This change adds tests for the headers for scenario about downloading.

The behavior where all header names become lowercase when converting the response header object to a hash likely depends on Net::HTTP.

Some libraries including Net::HTTP convert uppercase access to lowercase(In ruby, String#downcase.to_s), but once it's converted to a hash in bot-sdk-ruby, they don't do this.
However, since HTTP header names are not supposed to be case-sensitive (regardless of the programming language), I think this behavior is acceptable.

@Yang-33 Yang-33 requested a review from a team April 4, 2025 06:31
@Yang-33 Yang-33 self-assigned this Apr 4, 2025
@Yang-33 Yang-33 merged commit b234dc0 into line:master Apr 4, 2025
6 checks passed
@Yang-33 Yang-33 deleted the download-content-2 branch April 4, 2025 08:21
@Yang-33
Copy link
Copy Markdown
Contributor Author

Yang-33 commented Apr 8, 2025

#365

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