Changeset 764


Ignore:
Timestamp:
Apr 18, 2016, 11:12:57 AM (4 years ago)
Author:
Dominic Hargreaves
Message:

Fix more CGI::header issues (see previous commit)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/cgi/geocoder.fcgi

    r763 r764  
    253253                print "</geocoder>\n";
    254254        } elsif ($output eq "js") {
    255                 print header("text/javascript");
     255                print CGI::header("text/javascript");
    256256
    257257                if(defined $cgi->param("callback")) {
     
    269269                print "\n";
    270270    } else {
    271                 print header("text/plain");
     271                print CGI::header("text/plain");
    272272                print "# Easting,Northing,Matched Postcode,Latitude,Longitude\n";
    273273
     
    408408sub print_err {
    409409    my $err = shift;
    410     print header("text/plain", "400 $err");
     410    print CGI::header("text/plain", "400 $err");
    411411    print "Error: $err\n";
    412412}
     
    414414sub print_internal_err {
    415415    my $err = shift;
    416     print header("text/plain", "500 $err");
     416    print CGI::header("text/plain", "500 $err");
    417417    print "Error: $err\n";
    418418}
Note: See TracChangeset for help on using the changeset viewer.