Skip to content
This repository was archived by the owner on Jan 28, 2019. It is now read-only.

Commit 6bf4528

Browse files
committed
add encoded
1 parent 41c8e42 commit 6bf4528

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/NetworkInterface.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ public struct NetworkInterface {
175175
// encoded when included in a query string. As a result, we need to manually apply the encoding after Apple's
176176
// default encoding is applied.
177177
var encodedQuery = components?.percentEncodedQuery
178+
encodedQuery = encodedQuery?.replacingOccurrences(of: ">", with: "%3E")
179+
encodedQuery = encodedQuery?.replacingOccurrences(of: "<", with: "%3C")
180+
encodedQuery = encodedQuery?.replacingOccurrences(of: "@", with: "%40")
181+
178182
encodedQuery = encodedQuery?.replacingOccurrences(of: "?", with: "%3F")
179183
encodedQuery = encodedQuery?.replacingOccurrences(of: "+", with: "%2B")
180184
components?.percentEncodedQuery = encodedQuery

0 commit comments

Comments
 (0)