Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
fbae0db6
Commit
fbae0db6
authored
Jan 04, 2007
by
Dries
Browse files
- Patch
#104693
by Chris: switch back to HTTP/1.0 headers.
parent
1fee6076
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/common.inc
View file @
fbae0db6
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment