Skip to content

Commit 2ae7a2c

Browse files
committed
ACP2E-2969: REST API unable to make requests with slash (/) in SKU when using Oauth1
1 parent 136b10c commit 2ae7a2c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/internal/Magento/Framework/Oauth/Helper/Request.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ public function prepareRequest($httpRequest)
4343
$httpRequest->getContent(),
4444
$this->getRequestUrl($httpRequest)
4545
);
46+
foreach ($oauthParams as $key => $value) {
47+
if ($key !== 'oauth_signature') {
48+
$oauthParams[rawurlencode($key)] = rawurlencode($value);
49+
}
50+
}
4651
return $oauthParams;
4752
}
4853

0 commit comments

Comments
 (0)