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

default http to get and force uppercase #94

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

Conversation

bhelx
Copy link
Contributor

@bhelx bhelx commented Jan 29, 2025

No description provided.

@bhelx bhelx force-pushed the uppercase-the-http-method branch from dddfab1 to 08ecb5e Compare January 29, 2025 19:48
Comment on lines +521 to +525
// default method to GET and force to be upper
if request.Method == "" {
request.Method = "GET"
}
request.Method = strings.ToUpper(request.Method)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

as discussed in chat. we should do this to match the behavior of js-sdk. also, we uppercase because some http servers or APIs seem to be sensitive to this.

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