Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit 719f829

Browse files
committed
Encode plugin slug into api url
1 parent 62b1eb7 commit 719f829

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPressKit/PluginDirectoryServiceRemote.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public struct PluginDirectoryGetInformationEndpoint {
5858

5959
func buildRequest() throws -> URLRequest {
6060
try HTTPRequestBuilder(url: PluginDirectoryRemoteConstants.getInformationEndpoint)
61-
.append(percentEncodedPath: "\(slug).json")
61+
.appendURLString("\(slug).json")
6262
.query(name: "fields", value: "icons,banners")
6363
.build()
6464
}

0 commit comments

Comments
 (0)