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...
1 parent 0cea94b commit 7f4a89cbe42e627ce3600f755820e53bc09634df @chirags chirags committed Sep 30, 2009
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;
}
}

0 comments on commit 7f4a89c

Please sign in to comment.