Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Avoid double encoding of query params when using FoundationClient #244

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/HTTP/FoundationClient/URI+Foundation.swift
Expand Up @@ -14,7 +14,7 @@ extension URI {
comps.host = hostname.isEmpty ? nil : hostname
comps.port = port.flatMap(Int.init)
comps.path = path
comps.query = query
comps.query = query?.percentDecoded
comps.fragment = fragment
guard let url = comps.url else { throw ConversionError.unableToMakeFoundationURL }
return url
Expand Down