Requests containing URLs without a scheme are no longer accepted.
This commit is contained in:
parent
1c0508d127
commit
5e0415888a
|
@ -1,5 +1,11 @@
|
|||
# Jetforce Changelog
|
||||
|
||||
### v0.7.0 (unreleased)
|
||||
|
||||
#### Spec Changes
|
||||
|
||||
- Requests containing URLs without a scheme are no longer accepted.
|
||||
|
||||
### v0.6.0 (2020-07-30)
|
||||
|
||||
#### Bugfixes
|
||||
|
|
|
@ -54,10 +54,9 @@ class Request:
|
|||
raise ValueError("Missing hostname component")
|
||||
|
||||
if not url_parts.scheme:
|
||||
# If scheme is missing, infer it to be gemini://
|
||||
self.scheme = "gemini"
|
||||
else:
|
||||
self.scheme = url_parts.scheme
|
||||
raise ValueError("Missing scheme component")
|
||||
|
||||
self.scheme = url_parts.scheme
|
||||
|
||||
# gemini://username@host/... is forbidden by the specification
|
||||
if self.scheme == "gemini" and url_parts.username:
|
||||
|
|
Loading…
Reference in New Issue