Skip to content
Snippets Groups Projects

fix: patch for issue 3463730 - strip HTTP/ from version

1 file
+ 6
0
Compare changes
  • Side-by-side
  • Inline
@@ -285,6 +285,12 @@ abstract class HttpApiPluginBase extends PluginBase implements ContainerFactoryP
@@ -285,6 +285,12 @@ abstract class HttpApiPluginBase extends PluginBase implements ContainerFactoryP
* {@inheritdoc}
* {@inheritdoc}
*/
*/
public function preprocessOutgoingRequestOptions(array $options): array {
public function preprocessOutgoingRequestOptions(array $options): array {
 
if (
 
isset($options['version']) &&
 
substr($options['version'], 0, 5) == 'HTTP/'
 
) {
 
$options['version'] = substr($options['version'], 5);
 
}
return $options;
return $options;
}
}
Loading