Skip to content

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.

@bhelx bhelx merged commit f709f42 into main Feb 9, 2025
3 checks passed
@bhelx bhelx deleted the uppercase-the-http-method branch February 9, 2025 16:05
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.

4 participants