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

add toUpperCase when check for method #58

Closed
wants to merge 1 commit into from

Conversation

yuzurihaaa
Copy link

WHY

Current if there's request made into http.Client() with method "get", it will throw error.

ClientException: Invalid argument(s): Unsupported method: get, uri=...
#0      RhttpCompatibleClient.send (package:rhttp/src/client/compatible_client.dart:70:16)

It used to work because in dart-lang, it was later on called with toUpperCased https://github.com/dart-lang/sdk/blob/d878cfbf20375befa09f9bf85f0ba2b87b319427/sdk/lib/_http/http_impl.dart#L2323

WHAT

  1. Add toUpperCase for method.

@Tienisto
Copy link
Owner

Tienisto commented Mar 6, 2025

This is already fixed by another PR: #57

@Tienisto Tienisto closed this Mar 6, 2025
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