Hi, > I don't think so. The rehashed header props. might be flattened into a list of > the key-value pairs and then passed to CGI.pm's header() method directly: > > use CGI qw/header/; > my $rehashed_header_props = { -type => 'text/plain' }; > print header( %{$rehashed_header_props} ); > > If keys of rehashed header props. don't start with a dash, CGI#header will > behave unexpectedly: > > print header( type => 'text/plain' ); # doesn't work as you expect > > CGI::Application generates CGI response headers in the above way. > See CGI::Application#_send_headers. CGI::Application#header_props returns > a list of header props. > > Therefore, the current solution (with dashes) is most conservative. > It's ugly, but it works.
I wrote a patch to solve this problem: https://github.com/markstos/CGI--Application/pull/9 ##### CGI::Application community mailing list ################ ## ## ## To unsubscribe, or change your message delivery options, ## ## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp ## ## ## ## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ## ## Wiki: http://cgiapp.erlbaum.net/ ## ## ## ################################################################