Skip to content
Snippets Groups Projects
Commit fbae0db6 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #104693 by Chris: switch back to HTTP/1.0 headers.

parent 1fee6076
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -454,7 +454,7 @@ function drupal_http_request($url, $headers = array(), $method = 'GET', $data = ...@@ -454,7 +454,7 @@ function drupal_http_request($url, $headers = array(), $method = 'GET', $data =
$defaults[$header] = $header .': '. $value; $defaults[$header] = $header .': '. $value;
} }
$request = $method .' '. $path ." HTTP/1.1\r\n"; $request = $method .' '. $path ." HTTP/1.0\r\n";
$request .= implode("\r\n", $defaults); $request .= implode("\r\n", $defaults);
$request .= "\r\n\r\n"; $request .= "\r\n\r\n";
if ($data) { if ($data) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment