Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Include the Content-Type header in OAuthUtil::get_headers() for peopl…

…e who don't have apache_request_headers available to them.
  • Loading branch information...
commit 7f4a89cbe42e627ce3600f755820e53bc09634df 1 parent 0cea94b
@chirags chirags authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/OAuth.php
View
5 lib/OAuth.php
@@ -469,6 +469,11 @@ static function get_headers() {
$out[$key] = $value;
}
}
+
+ if(!isset($out['Content-Type'])) {
+ $out['Content-Type'] = @$_SERVER['CONTENT_TYPE'];
+ }
+
return $out;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.