rayman813 / smashing-updater-plugin

Smashing Magazine Updater Plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid Authorization header?

eazulay opened this issue · comments

On line 156:
$args = array_merge( $args, array( "headers" => array( "Authorization" => "token {$this->authorize_token}" ) ) );

Shouldn't it be "bearer" instead of "token" (as per line 56)? i.e.:
$args = array_merge( $args, array( "headers" => array( "Authorization" => "bearer {$this->authorize_token}" ) ) );

Is this a typo?