Skip to content

Commit

Permalink
http3_client: :path should not be empty
Browse files Browse the repository at this point in the history
When URL parameter has no path, such as https://foo.com,
it sends `:path` with empty string, which violates
https://quicwg.org/base-drafts/draft-ietf-quic-http.html#section-4.1.1.1
  • Loading branch information
junhochoi authored and jlaine committed Apr 29, 2022
1 parent ecfee46 commit 96ce66b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/http3_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, url: str) -> None:
parsed = urlparse(url)

self.authority = parsed.netloc
self.full_path = parsed.path
self.full_path = parsed.path or "/"
if parsed.query:
self.full_path += "?" + parsed.query
self.scheme = parsed.scheme
Expand Down

0 comments on commit 96ce66b

Please sign in to comment.