Ignore:
Timestamp:
Oct 29, 2015, 3:47:19 PM (6 years ago)
Author:
Nick Burch
Message:

Fix for CGI modules in Perl 5.20, along the same lines as the Munin did in 9fabbe79671de2ab6b82c9319e69fb7f6878e921

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/cgi/get-postcodes.fcgi

    r635 r763  
    126126sub print_err {
    127127    my $err = shift;
    128     print header("text/plain", "400 $err");
     128    print CGI::header("text/plain", "400 $err");
    129129    print "Error: $err\n";
    130130}
     
    132132sub print_internal_err {
    133133    my $err = shift;
    134     print header("text/plain", "500 $err");
     134    print CGI::header("text/plain", "500 $err");
    135135    print "Error: $err\n";
    136136}
Note: See TracChangeset for help on using the changeset viewer.