We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e58e92d commit e159524Copy full SHA for e159524
Foundation/URLSession/http/HTTPURLProtocol.swift
@@ -401,10 +401,12 @@ internal extension _HTTPURLProtocol {
401
402
let scheme = request.url?.scheme
403
let host = request.url?.host
404
+ let port = request.url?.port
405
406
var components = URLComponents()
407
components.scheme = scheme
408
components.host = host
409
+ components.port = port
410
//The path must either begin with "/" or be an empty string.
411
if targetURL.relativeString.first != "/" {
412
components.path = "/" + targetURL.relativeString
0 commit comments