Skip to content

Commit

Permalink
PhutilMediaWikiAuthAdapter: Add user agent to getUserInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
paladox committed Nov 30, 2020
1 parent d0e5598 commit bf52aaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions PhutilMediaWikiAuthAdapter.php
Expand Up @@ -118,6 +118,7 @@ private function getUserInfo() {
list( $body ) = $this->newOAuth1Future( $uri )
->setMethod( 'GET' )
->setNonce( $nonce )
->addHeader( 'User-Agent', __CLASS__ )
->resolvex();
$this->userinfo = $this->decodeAndVerifyJWT( $body, $nonce );
}
Expand Down

0 comments on commit bf52aaf

Please sign in to comment.