-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix Grape allowing invalid headers to be set #2511
Open
SlakrHakr
wants to merge
8
commits into
ruby-grape:master
Choose a base branch
from
SlakrHakr:convert-headers-to-strings
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Commits on Nov 15, 2024
-
Fix Grape allowing invalid headers to be set
Fixes ruby-grape#2334 Ensure all header values are strings according to the Rack spec. * Convert header values to strings using `to_s` in the `header` method in `lib/grape/dsl/headers.rb`. * Emit a warning if the header value is not a string in the `header` method in `lib/grape/dsl/headers.rb`. * Add tests in `spec/grape/dsl/headers_spec.rb` to verify that non-string header values are converted to strings and warnings are emitted. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/ruby-grape/grape/issues/2334?shareId=XXXX-XXXX-XXXX-XXXX).
Configuration menu - View commit details
-
Copy full SHA for c392284 - Browse repository at this point
Copy the full SHA c392284View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f5e53a - Browse repository at this point
Copy the full SHA 7f5e53aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ffceb5 - Browse repository at this point
Copy the full SHA 6ffceb5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 159a2df - Browse repository at this point
Copy the full SHA 159a2dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for d18cdfc - Browse repository at this point
Copy the full SHA d18cdfcView commit details -
Configuration menu - View commit details
-
Copy full SHA for d3ed93a - Browse repository at this point
Copy the full SHA d3ed93aView commit details -
Configuration menu - View commit details
-
Copy full SHA for fa8eb12 - Browse repository at this point
Copy the full SHA fa8eb12View commit details -
Configuration menu - View commit details
-
Copy full SHA for 761a7e6 - Browse repository at this point
Copy the full SHA 761a7e6View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.