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