Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit b8939b0

Browse files
committed
🚿
1 parent c1c2377 commit b8939b0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Core/OAuth1Provider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function getRequestToken():AccessToken{
5656
$request = $this->requestFactory
5757
->createRequest('POST', $this->requestTokenURL)
5858
->withHeader('Authorization', 'OAuth '.$this->buildQuery($params, null, ', ', '"'))
59-
->withHeader('Accept-Encoding', 'identity')
59+
->withHeader('Accept-Encoding', 'identity') // try to avoid compression
6060
->withHeader('Content-Length', '0') // tumblr requires a content-length header set
6161
;
6262

src/OAuthOptions.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
namespace chillerlan\OAuth;
1212

13+
use chillerlan\HTTP\HTTPOptionsTrait;
1314
use chillerlan\Settings\SettingsContainerAbstract;
1415

1516
/**
@@ -32,13 +33,13 @@
3233
* @property array $curl_options
3334
* @property string $ca_info
3435
* @property bool $ssl_verifypeer
35-
* @property string $curlHandle
36-
* @property int $windowSize
36+
* @property int $window_size
3737
* @property int|float $sleep
3838
* @property int $timeout
3939
* @property int $retries
4040
* @property array $curl_multi_options
41+
* @property bool $curl_check_OCSP
4142
*/
4243
class OAuthOptions extends SettingsContainerAbstract{
43-
use OAuthOptionsTrait;
44+
use OAuthOptionsTrait, HTTPOptionsTrait;
4445
}

0 commit comments

Comments
 (0)