Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
db8215e5
Commit
db8215e5
authored
Jul 18, 2008
by
Dries Buytaert
Browse files
- Patch
#231190
by Dries: drupalHead repeated twice. Oops.
parent
66d67439
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/simpletest/drupal_web_test_case.php
View file @
db8215e5
...
...
@@ -906,23 +906,6 @@ function drupalHead($path, $options = array()) {
return
$out
;
}
/**
* Retrieves only the headers for a Drupal path or an absolute path.
*
* @param $path
* Drupal path or url to load into internal browser
* @param $options
* Options to be forwarded to url().
* @return
* The retrieved headers, also available as $this->drupalGetContent()
*/
function
drupalHead
(
$path
,
$options
=
array
())
{
$options
[
'absolute'
]
=
TRUE
;
$out
=
$this
->
curlExec
(
array
(
CURLOPT_HEADER
=>
TRUE
,
CURLOPT_NOBODY
=>
TRUE
,
CURLOPT_URL
=>
url
(
$path
,
$options
)));
$this
->
refreshVariables
();
// Ensure that any changes to variables in the other thread are picked up.
return
$out
;
}
/**
* Handle form input related to drupalPost(). Ensure that the specified fields
* exist and attempt to create POST data in the correct manner for the particular
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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