Skip to content
Snippets Groups Projects
Commit e4acfc5f authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Merge branch 'http_redirect' of /home/git/repositories/charlmert/opentrafficshaper

parents 45de456d e7e6f076
No related branches found
No related tags found
No related merge requests found
......@@ -460,10 +460,11 @@ sub _build_raw_response
if (!defined($response->header("Server"))) {
$response->push_header("Server","POE Hybrid HTTP Server v$VERSION");
}
# Set our content Length
if (my $length = length($response->content)) {
$response->push_header("Content-Length",$length);
}
# Set our content length
# - This is required even if the content length is 0, for instance when we doing a REDIRECT with no content some browsers hang if
# - there is no content length set.
$response->push_header("Content-Length",length($response->content));
# Setup our output
my $output = sprintf("%s %s",$self->{'protocol'},$response->status_line);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment