daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Jun 19th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     if (isset($_SERVER['HTTP_ACCEPT'])) {
  2.       // normalize things like "application/json; charset=utf-8" to application/json
  3.       foreach ($acceptedContentTypes as $contentType) {
  4.         if (strpos(strtolower($_SERVER['HTTP_ACCEPT']), $contentType) !== false) {
  5.           $_SERVER['HTTP_ACCEPT'] = $contentType;
  6.           $this->setContentType($contentType);
  7.           break;
  8.         }
  9.       }
  10.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top