Skip to content

Commit 07798f9

Browse files
authored
Fix template URL to correctly pass token
1 parent cc7e608 commit 07798f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/zendesk/client/v2/Zendesk.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ public Attachment.Upload createUpload(String fileName, String contentType, byte[
482482
}
483483

484484
public Attachment.Upload createUpload(String token, String fileName, String contentType, byte[] content) {
485-
TemplateUri uri = tmpl("/uploads.json{?filename}{?token}").set("filename", fileName);
485+
TemplateUri uri = tmpl("/uploads.json{?filename,token}").set("filename", fileName);
486486
if (token != null) {
487487
uri.set("token", token);
488488
}

0 commit comments

Comments
 (0)