瀏覽代碼

Use "real" params for format as well

Alois Mahdal 13 年之前
父節點
當前提交
7a15544f0b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      lib/SugarTrail.pm

+ 1
- 1
lib/SugarTrail.pm 查看文件

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
     ));