We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2724628 commit ea8f680Copy full SHA for ea8f680
src/Client.php
@@ -72,7 +72,7 @@ private function request ( $method, $url, array $url_parameters = [], array $opt
72
$options['headers']['Content-Type'] = 'application/json; charset=utf-8';
73
74
// Set "on behalf of user" header
75
- if ( mb_strlen($this->on_behalf_of_user) ) {
+ if ( !empty($this->on_behalf_of_user) ) {
76
$options['headers']['X-On-Behalf-Of'] = $this->on_behalf_of_user;
77
}
78
0 commit comments