summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc9
1 files changed, 3 insertions, 6 deletions
diff --git a/includes/common.inc b/includes/common.inc
index cad24179a..72e9e2051 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -231,9 +231,9 @@ function drupal_http_request($url, $headers = array(), $method = 'GET', $data =
// Create http request
$defaults = array(
- 'host' => "Host: $uri[host]",
- 'user-agent' => 'User-Agent: Drupal (+http://www.drupal.org/)',
- 'content-length' => 'Content-Length: '. strlen($data)
+ 'Host' => "Host: $uri[host]",
+ 'User-Agent' => 'User-Agent: Drupal (+http://www.drupal.org/)',
+ 'Content-Length' => 'Content-Length: '. strlen($data)
);
foreach ($headers as $header => $value) {
@@ -893,9 +893,6 @@ function drupal_get_path_alias($path) {
elseif (function_exists("conf_url_rewrite")) {
return conf_url_rewrite($path, 'outgoing');
}
- else {
- return $path;
- }
}
/**