From 0259d51d273878ffb5af19658e6e28b1af420c15 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Mon, 8 Jul 2024 21:42:11 +0200 Subject: [PATCH] fix #479 --- includes/class-response.php | 4 ++++ 1 file changed, 4 insertions(+) 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 );