Skip to content
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

parsing add case-sensitive headers with '@' #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GodKelvin
Copy link

Because in some applications the header is sensitive, for this, if I pass an '@', I make the same value in header, without capitalize. For example, I have a request for API make in C#, him break if I pass 'Token' but worked if I pass 'token', because he not follow the RFC.

Comment on lines +225 to +226
if(name[0] == '@')
name.gsub('@', '')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks an interesting idea, but ambiguous a little.
This checks the first letter only but deletes all @.
What do you expect when name contains an @ in the middle?

@nobu nobu changed the title parsing add sensitive headers with '@' parsing add case-sensitive headers with '@' Oct 30, 2023
@kahshing96
Copy link

hi @GodKelvin @nobu is there any update on this PR? would like to have this feature be merged which will be helpful in certain case where the 3rd-party API server is not following the RFC standard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants