summaryrefslogtreecommitdiff
path: root/t/headers/default.t
diff options
context:
space:
mode:
Diffstat (limited to 't/headers/default.t')
-rw-r--r--t/headers/default.t13
1 files changed, 13 insertions, 0 deletions
diff --git a/t/headers/default.t b/t/headers/default.t
new file mode 100644
index 0000000..007c6ea
--- /dev/null
+++ b/t/headers/default.t
@@ -0,0 +1,13 @@
+use strict;
+use CGI;
+use Test::More;
+
+{
+ my $cgi = CGI->new;
+ my $got = $cgi->header();
+ my $expected = 'Content-Type: text/html; charset=ISO-8859-1'
+ . $CGI::CRLF x 2;
+ is $got, $expected, 'default';
+}
+
+done_testing;