Skip to content

Commit 0259d51

Browse files
committed
fix #479
1 parent 8e80450 commit 0259d51

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

includes/class-response.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ protected function check_content_type() {
138138
protected function get_content_type() {
139139
$content_type = $this->content_type;
140140

141+
if ( is_array( $content_type ) ) {
142+
$content_type = array_shift( $content_type );
143+
}
144+
141145
// Strip any character set off the content type
142146
$content_type = explode( ';', $content_type );
143147

0 commit comments

Comments
 (0)