Skip to content

Commit

Permalink
fix #479
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Jul 8, 2024
1 parent 8e80450 commit 0259d51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/class-response.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit 0259d51

Please sign in to comment.