10000 Add Accept: */* header · mkhader88/codebird-php@d1b97b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit d1b97b6

Browse files
committed
Add Accept: */* header
1 parent a230495 commit d1b97b6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/codebird.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,8 @@ protected function _oauth2_token_no_curl()
511511
'http' => array(
512512
'method' => 'POST',
513513
'protocol_version' => '1.1',
514-
'header' => 'Authorization: Basic '
514+
'header' => "Accept: */*\r\n"
515+
. 'Authorization: Basic '
515516
. base64_encode(
516517
self::$_oauth_consumer_key
517518
. ':'
@@ -1336,6 +1337,7 @@ protected function _callApi_no_curl($httpmethod, $method, $params = array(), $mu
13361337
}
13371338
$authorization = 'Bearer ' . self::$_oauth_bearer_token;
13381339
}
1340+
$request_headers[] = 'Accept: */*';
13391341
$request_headers[] = 'Authorization: ' . $authorization;
13401342
$request_headers[] = 'Expect:';
13411343

0 commit comments

Comments
 (0)
0