diff --git a/collectors/raw_request.php b/collectors/raw_request.php index edcad7812..195e5cbdc 100644 --- a/collectors/raw_request.php +++ b/collectors/raw_request.php @@ -70,7 +70,9 @@ public function process() { $raw_headers = headers_list(); foreach ( $raw_headers as $row ) { list( $key, $value ) = explode( ':', $row, 2 ); - $headers[ trim( $key ) ] = trim( $value ); + if ( null !== $key && null !== $value ) { + $headers[ trim( $key ) ] = trim( $value ); + } } ksort( $headers );