Skip to content

Commit

Permalink
method
Browse files Browse the repository at this point in the history
  • Loading branch information
lzchen committed Jun 21, 2024
1 parent 9c64041 commit 6bc0815
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,9 @@ def collect_request_attributes(scope, sem_conv_opt_in_mode=_HTTPStabilityMode.DE
if http_url:
_set_http_url(result, remove_url_credentials(http_url), sem_conv_opt_in_mode)

http_method = scope.get("method")
http_method = scope.get("method", "")
if http_method:
_set_http_method(result, http_method, sem_conv_opt_in_mode)
_set_http_method(result, http_method, sanitize_method(http_method), sem_conv_opt_in_mode)

http_host_value_list = asgi_getter.get(scope, "host")
if http_host_value_list:
Expand Down

0 comments on commit 6bc0815

Please sign in to comment.