APR-HTTP-Headers-Compat
view release on metacpan or search on metacpan
123456789Revision history
for
APR-HTTP-Headers-Compat
0.01 2009-06-11
- Initial release.
0.02 2009-06-12
- Expanded on documentation
- Removed a couple of errant
$DB::single
= 1 statements. Mad
debugging skilz.
t/compat/base/headers.t view on Meta::CPAN
251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283is(
$h
->server,
undef
);
is(
$h
->server(
"Apache/2.1"
),
undef
);
is(
$h
->server,
"Apache/2.1"
);
is(
$h
->from(
"Gisle\@ActiveState.com"
),
undef
);
ok(
$h
->header(
"from"
,
"Gisle\@ActiveState.com"
) );
SKIP: {
skip
"Can't store references"
=> 4;
$h
->referer(
$u
);
is(
$h
->referer->fragment,
undef
);
is(
$h
->as_string, <<EOT);
From: Gisle\
@ActiveState
.com
Referer: http://www.example.com
User-Agent: Mozilla/1.2
Server: Apache/2.1
Content-Encoding: gzip
Content-Language:
no
Content-Type: text/html;
charSet =
"ISO-8859-1"
; Foo=1
Title: This is a test
( run in 0.546 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )