File: charset.t

package info (click to toggle)
libhttp-headers-fast-perl 0.22-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 176 kB
  • sloc: perl: 1,036; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 243 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
use strict;

use Test::More;
plan tests => 2;

use HTTP::Headers::Fast;

my $h = HTTP::Headers::Fast->new;
is($h->content_type_charset, undef);

$h->content_type('text/plain; charset="iso-8859-1"');
is($h->content_type_charset, "ISO-8859-1");