Skip to content

Commit

Permalink
Aligned path composer to the fixed isAbsoluteURL property
Browse files Browse the repository at this point in the history
  • Loading branch information
malcommac committed Jul 22, 2022
1 parent b482957 commit 2a5c967
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,7 @@ public extension HTTPRequest {
// An absolute URL will replace any settings from destination client.
urlComponents = parsed
} else {
if newValue.first == "/" {
urlComponents.path = newValue
} else {
urlComponents.path = "/\(newValue)"
}
urlComponents.path = newValue
}
}
}
Expand Down

0 comments on commit 2a5c967

Please sign in to comment.