File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ import AsyncHTTPClient
9
9
let DASHDASH = "--"
10
10
let CRLF = "\r\n"
11
11
12
+ extension CharacterSet {
13
+ static let rfc3986Unreserved = CharacterSet(charactersIn: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~")
14
+ }
15
+
12
16
open class Client {
13
17
14
18
// MARK: Properties
@@ -214,7 +218,7 @@ open class Client {
214
218
}
215
219
216
220
return output.addingPercentEncoding(
217
- withAllowedCharacters: .urlHostAllowed
221
+ withAllowedCharacters: .rfc3986Unreserved
218
222
) ?? ""
219
223
}
220
224
Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ import AsyncHTTPClient
9
9
let DASHDASH = "--"
10
10
let CRLF = "\r\n"
11
11
12
+ extension CharacterSet {
13
+ static let rfc3986Unreserved = CharacterSet(charactersIn: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~")
14
+ }
15
+
12
16
open class Client {
13
17
14
18
// MARK: Properties
@@ -191,7 +195,7 @@ open class Client {
191
195
}
192
196
193
197
return output.addingPercentEncoding(
194
- withAllowedCharacters: .urlHostAllowed
198
+ withAllowedCharacters: .rfc3986Unreserved
195
199
) ?? ""
196
200
}
197
201
You can’t perform that action at this time.
0 commit comments