diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-01-07 20:43:26 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-01-07 20:43:26 +0000 |
commit | f78cb9932b36b8f16b91f1a9e08d2bdf3f736b1e (patch) | |
tree | fe84b731d94d786c0ad186e2392ddac9437b525e /includes | |
parent | 94f6e94ffdb72e0ac78c5d06ec95a9e6f9f6f47f (diff) | |
download | brdo-f78cb9932b36b8f16b91f1a9e08d2bdf3f736b1e.tar.gz brdo-f78cb9932b36b8f16b91f1a9e08d2bdf3f736b1e.tar.bz2 |
- Fixed ability to override default HTTP headers in drupal_http_request().
- Fixed issue with drupal_get_path_alias(): should return false for non-aliased URLs.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 9 |
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; - } } /** |