summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xhttprl.module2
1 files changed, 2 insertions, 0 deletions
diff --git a/httprl.module b/httprl.module
index 0d9aa91..d6483ba 100755
--- a/httprl.module
+++ b/httprl.module
@@ -646,6 +646,8 @@ function httprl_parse_data(&$result) {
// TODO: Parse cookies from header and send them in the redirect request.
$result->options['max_redirects']--;
$result->options['headers']['Referer'] = $result->url;
+ // Remove the host from the header.
+ unset($result->options['headers']['Host']);
httprl_request($location, $result->options);
$result->redirect_code[] = $code;
}