Fix #424: Escape question mark '?'
It would otherwise be interpreted as the beginning of the query part in an URL.
This commit is contained in:
parent
17ce107129
commit
eba4df2f51
2 changed files with 3 additions and 3 deletions
|
|
@ -12,7 +12,7 @@ public extension String {
|
|||
}
|
||||
|
||||
func stringByAddingPercentEncodingForRFC3986() -> String? {
|
||||
let unreserved = "-._~/?"
|
||||
let unreserved = "-._~/"
|
||||
var allowed = CharacterSet.alphanumerics
|
||||
allowed.insert(charactersIn: unreserved)
|
||||
return addingPercentEncoding(withAllowedCharacters: allowed)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue