-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Case insensitive headers * Clean up + bump version * Fix connection header
- Loading branch information
1 parent
74286ea
commit d2b05d6
Showing
8 changed files
with
56 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,5 +42,5 @@ | |
"Test::Util::ServerPort", | ||
"Cro::HTTP::Client" | ||
], | ||
"version": "2.1.7" | ||
"version": "2.2.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
use v6; | ||
use lib 'lib'; | ||
use strict; | ||
use Test; | ||
use Humming-Bird::Core; | ||
|
||
plan 4; | ||
|
||
my $req = Request.new(path => '/', method => GET, version => 'HTTP/1.1'); | ||
|
||
ok $req.header('Foo', 'bar'), 'Does add ok?'; | ||
ok $req.header('Bar', 'foo'), 'Does add ok?'; | ||
|
||
is $req.header('foo'), 'bar', 'Does get case insensitive?'; | ||
is $req.header('BaR'), 'foo', 'Does get case insensitive?'; | ||
|
||
done-testing; |