Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion rivetkit-swift/Sources/RivetKitClient/URLUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ enum URLUtils {
}

var components = URLComponents(url: baseUrl, resolvingAgainstBaseURL: false)
components?.path = fullPath
// fullPath is already percent-encoded (see buildActorGatewayUrl); .path would
// re-encode `%` and break actor IDs containing `:` (e.g. Cloudflare Workers).
components?.percentEncodedPath = fullPath
components?.percentEncodedQuery = queryParts.isEmpty ? nil : queryParts.joined(separator: "&")
components?.fragment = nil

Expand Down