Revision: 105 Author: matt Date: 2006-08-21 21:25:09 +0000 (Mon, 21 Aug 2006)
Log Message: ----------- Content-Type needs to go into the outbound headers, not inbound Modified Paths: -------------- trunk/plugins/serve_file Modified: trunk/plugins/serve_file =================================================================== --- trunk/plugins/serve_file 2006-08-21 21:24:07 UTC (rev 104) +++ trunk/plugins/serve_file 2006-08-21 21:25:09 UTC (rev 105) @@ -52,7 +52,7 @@ my $file = $hd->filename; $self->log(LOGINFO, "Serving file: $file"); if (open(my $fh, $file)) { - $hd->header('Content-Type', $ct); + $self->client->headers_out->header('Content-Type', $ct); $self->client->send_http_headers; local $/;