Skip to content

Commit ad2eb2c

Browse files
committed
Fixed transforms using the wrong base URL resulting in 404 responses.
1 parent 3cf038b commit ad2eb2c

File tree

3 files changed

+111
-110
lines changed

3 files changed

+111
-110
lines changed

FilestackSDK/Internal/Constants.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import Foundation
1111
struct Constants {
1212
static let apiURL = URL(string: "https://www.filestackapi.com/api")!
1313
static let uploadURL = URL(string: "https://upload.filestackapi.com")!
14+
static let cdnURL = URL(string: "https://cdn.filestackcontent.com")!
1415

1516
static let filePath = "file"
1617

FilestackSDK/Internal/Services/ProcessService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ final class ProcessService: NetworkingServiceWithBaseURL {
1515
// MARK: - Internal Properties
1616

1717
let sessionManager = SessionManager.filestack()
18-
let baseURL = Constants.apiURL
18+
let baseURL = Constants.cdnURL
1919

2020
static let shared = Shared
2121
}

0 commit comments

Comments
 (0)