... is not valid header value

Created on 14 August 2025, about 2 months ago

Problem/Motivation

When adding multiple headers then the following errors appears:

InvalidArgumentException: "Mozilla/5.0 (X11; Linux x86_64; rv:141.0) Gecko/20100101 Firefox/141.0\r " is not valid header value. in GuzzleHttp\Psr7\Request->assertValue() (line 260 of /var/www/html/vendor/guzzlehttp/psr7/src/MessageTrait.php).

Proposed resolution

Add trim to the: Drupal\stage_file_proxy\EventSubscriber\StageFileProxySubscriber::createProxyHeadersArray

πŸ› Bug report
Status

Active

Version

3.1

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine dench0

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024