Browse Source

Use "real" params for format as well

Alois Mahdal 11 years ago
parent
commit
7a15544f0b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/SugarTrail.pm

+ 1
- 1
lib/SugarTrail.pm View File

25
     &helper::dmup (real_params => $params);
25
     &helper::dmup (real_params => $params);
26
 
26
 
27
     my ($stpath, $query) = splat;
27
     my ($stpath, $query) = splat;
28
-    my $format = params->{__format} // 'plain';
28
+    my $format = $params->{__format} // 'plain';
29
     header('Content-Type' => ( 
29
     header('Content-Type' => ( 
30
             $format eq 'html' ? 'text/html' : 'text/plain'
30
             $format eq 'html' ? 'text/html' : 'text/plain'
31
     ));
31
     ));