Changeset 116

Show
Ignore:
Timestamp:
04/08/08 17:27:09 (9 months ago)
Author:
clay
Message:

Sungrazr_Server_Adapter_JsonRpc: [FIX] don't care about charsets

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Sungrazr/Server/Adapter/JsonRpc.php

    r114 r116  
    432432    { 
    433433        $ct = strtolower($this->_request->server('CONTENT_TYPE', 'unknown')); 
     434        // make sure we don't care about charsets 
     435        $pos = strpos($ct, ';'); 
     436        if ($pos !== false) { 
     437            $ct = substr($ct, 0, $pos); 
     438        } 
    434439        if (! in_array($ct, $this->_config['content_types']['request'])) { 
    435440            return $this->fault(