We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e80450 commit 0259d51Copy full SHA for 0259d51
includes/class-response.php
@@ -138,6 +138,10 @@ protected function check_content_type() {
138
protected function get_content_type() {
139
$content_type = $this->content_type;
140
141
+ if ( is_array( $content_type ) ) {
142
+ $content_type = array_shift( $content_type );
143
+ }
144
+
145
// Strip any character set off the content type
146
$content_type = explode( ';', $content_type );
147
0 commit comments