Skip to content

Allow non-string value in Headers#[]=. #85

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 1, 2025
Merged

Conversation

ioquatix
Copy link
Member

@ioquatix ioquatix commented Jul 1, 2025

Fixes #81 and is an alternative to #82.

When assigning a value to a key, we either need to check that it's a string or coerce it to a string, otherwise it can fail later in an unexpected way.

Types of Changes

  • Bug fix.
  • New feature.

Contribution

@ioquatix ioquatix force-pushed the allow-non-string-values branch 2 times, most recently from e997103 to 531065e Compare July 1, 2025 01:59
@ioquatix ioquatix force-pushed the allow-non-string-values branch from 531065e to 2589aaa Compare July 1, 2025 02:10
@ioquatix ioquatix merged commit fd9d606 into main Jul 1, 2025
36 of 40 checks passed
@ioquatix ioquatix deleted the allow-non-string-values branch July 1, 2025 02:18
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.

NoMethodError when a header value is not a string
1 participant