diff --git a/includes/class-response.php b/includes/class-response.php index 8a8fa1a..377538e 100644 --- a/includes/class-response.php +++ b/includes/class-response.php @@ -138,6 +138,10 @@ protected function check_content_type() { protected function get_content_type() { $content_type = $this->content_type; + if ( is_array( $content_type ) ) { + $content_type = array_shift( $content_type ); + } + // Strip any character set off the content type $content_type = explode( ';', $content_type );