mirror of
https://github.com/cirruslabs/tart.git
synced 2026-10-22 03:24:40 +02:00
* Registry: don't loose query parameters on URL absolutization * Registry: throw a proper exception when Location header parsing fails
8 lines
139 B
Swift
8 lines
139 B
Swift
import Foundation
|
|
|
|
extension URL {
|
|
func absolutize(_ baseURL: URL) -> Self {
|
|
URL(string: absoluteString, relativeTo: baseURL)!
|
|
}
|
|
}
|