Skip to content

Commit

Permalink
Merge pull request #147 from Gman98ish/fix-url-encoding
Browse files Browse the repository at this point in the history
No longer urlencodes twice when downloading/uploading attachments
  • Loading branch information
bluemorbo authored Nov 14, 2019
2 parents ead0074 + 9921db0 commit 7f2c8e3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/PSS/ReplyClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ public function create($requestId, $reply)
*/
public function upload($replyId, $name, $content)
{
$name = urlencode($name);
$uri = "v1/replies/$replyId/attachments/$name";
$response = $this->request('POST', $uri, $content);

Expand All @@ -92,7 +91,6 @@ public function upload($replyId, $name, $content)
*/
public function download($replyId, $name)
{
$name = urlencode($name);
return new Download(
$this->request('GET', "v1/replies/$replyId/attachments/$name")
);
Expand All @@ -106,7 +104,6 @@ public function download($replyId, $name)
*/
public function deleteAttachment($replyId, $name)
{
$name = urlencode($name);
$this->delete("v1/replies/$replyId/attachments/$name");
}

Expand Down

0 comments on commit 7f2c8e3

Please sign in to comment.