From 4fd175b5f393f4248d76e8d0ae8ab26b75f586c7 Mon Sep 17 00:00:00 2001 From: Ivan Vavilov Date: Thu, 20 Jul 2023 16:04:11 -0700 Subject: [PATCH] Resolve URL components against base URL --- Apexy.podspec | 4 ++-- Example/Podfile.lock | 12 ++++++------ Sources/Apexy/URLRequestBuildable.swift | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Apexy.podspec b/Apexy.podspec index 2eaed22..88266fd 100644 --- a/Apexy.podspec +++ b/Apexy.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Apexy" - s.version = "1.7.2" + s.version = "1.7.3" s.summary = "HTTP transport library" s.homepage = "https://github.com/RedMadRobot/apexy-ios" s.license = { :type => "MIT"} @@ -36,4 +36,4 @@ Pod::Spec.new do |s| s.default_subspecs = ["Alamofire"] -end \ No newline at end of file +end diff --git a/Example/Podfile.lock b/Example/Podfile.lock index 77d856b..09d4e82 100644 --- a/Example/Podfile.lock +++ b/Example/Podfile.lock @@ -1,11 +1,11 @@ PODS: - Alamofire (5.4.1) - - Apexy (1.4.1): - - Apexy/Alamofire (= 1.4.1) - - Apexy/Alamofire (1.4.1): + - Apexy (1.7.2): + - Apexy/Alamofire (= 1.7.2) + - Apexy/Alamofire (1.7.2): - Alamofire (~> 5.0) - Apexy/Core - - Apexy/Core (1.4.1) + - Apexy/Core (1.7.2) DEPENDENCIES: - Apexy (from `../`) @@ -20,8 +20,8 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: Alamofire: 2291f7d21ca607c491dd17642e5d40fdcda0e65c - Apexy: a9bfb8db4277c3b97d9063cbee34a28c87074c20 + Apexy: 984a2c615adf4b5af3432859d768a7a3dec51907 PODFILE CHECKSUM: f86a90e7590ccb3aa7caeceaf315abe256650c66 -COCOAPODS: 1.10.1 +COCOAPODS: 1.12.1 diff --git a/Sources/Apexy/URLRequestBuildable.swift b/Sources/Apexy/URLRequestBuildable.swift index 0603cd8..7f44427 100644 --- a/Sources/Apexy/URLRequestBuildable.swift +++ b/Sources/Apexy/URLRequestBuildable.swift @@ -28,7 +28,7 @@ public extension URLRequestBuildable { return URLRequest(url: url) } - var components = URLComponents(url: url, resolvingAgainstBaseURL: false) + var components = URLComponents(url: url, resolvingAgainstBaseURL: true) components?.queryItems = queryItems guard let queryURL = components?.url else {