X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FCGI%2FMaypole.pm;h=99cf27f92b2a1b295fe9872057db093523430bb2;hb=8617321ebf13ce6b63d41a65a003d153f2b5cc5e;hp=94fd27b3f79458245154e584a4dc4c596cf73176;hpb=f9a6b47b3b916585d710eac141003fb8261d9c3c;p=maypole.git diff --git a/lib/CGI/Maypole.pm b/lib/CGI/Maypole.pm index 94fd27b..99cf27f 100644 --- a/lib/CGI/Maypole.pm +++ b/lib/CGI/Maypole.pm @@ -58,8 +58,8 @@ sub send_output { -charset => $r->{document_encoding}, -content_length => do { use bytes; length $r->{output} }, ); - foreach ($r->headers_out->header_field_names) { - next if /^Content-/; + foreach ($r->headers_out->field_names) { + next if /^Content-(Type|Length)/; $headers{"-$_"} = $r->headers_out->get($_); }