private function LingotekOAuthRequest::getRequestContentType in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.4 lib/oauth-php/library/LingotekOAuthRequest.php \LingotekOAuthRequest::getRequestContentType()
- 7.5 lib/oauth-php/library/LingotekOAuthRequest.php \LingotekOAuthRequest::getRequestContentType()
- 7.6 lib/oauth-php/library/LingotekOAuthRequest.php \LingotekOAuthRequest::getRequestContentType()
* Fetch the content type of the current request * *
Return value
string
File
- lib/
oauth-php/ library/ LingotekOAuthRequest.php, line 642
Class
- LingotekOAuthRequest
- Object to parse an incoming OAuth request or prepare an outgoing OAuth request
Code
private function getRequestContentType() {
$content_type = 'application/octet-stream';
if (!empty($_SERVER) && array_key_exists('CONTENT_TYPE', $_SERVER)) {
list($content_type) = explode(';', $_SERVER['CONTENT_TYPE']);
}
return trim($content_type);
}