diff options
Diffstat (limited to 't/gh-155.t')
-rw-r--r-- | t/gh-155.t | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/t/gh-155.t b/t/gh-155.t new file mode 100644 index 0000000..0c198b0 --- /dev/null +++ b/t/gh-155.t @@ -0,0 +1,23 @@ +use strict; +use warnings; +use Test::More; + +use CGI; + +for (1 .. 20) { + my $q = CGI->new; + + my %args = ( + '-charset' => 'UTF-8', + '-type' => 'text/html', + '-content-type' => 'text/html; charset=iso-8859-1', + ); + + like( + $q->header(%args), + qr!Content-Type: text/html; charset=iso-8859-1!, + 'favour content type over charset/type' + ); +} + +done_testing(); |