Skip to content

Commit

Permalink
Merge pull request #550 from memememomo/master
Browse files Browse the repository at this point in the history
POD typo
  • Loading branch information
kraih committed Oct 19, 2013
2 parents 955c1dd + c7e2af3 commit d8f46b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/Mojo/Message/Request.pm
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ Mojo::Message::Request - HTTP request
# Parse
my $req = Mojo::Message::Request->new;
$req->parse("GET /foo HTTP/1.0\x0a\x0d");
$req->parse("Content-Length: 12\x0a\x0d\x0a\x0d");
$req->parse("Content-Type: text/plain\x0a\x0d\x0a\x0d");
$req->parse("GET /foo HTTP/1.0\x0d\x0a");
$req->parse("Content-Length: 12\x0d\x0a");
$req->parse("Content-Type: text/plain\x0d\x0a\x0d\x0a");
$req->parse('Hello World!');
say $req->method;
say $req->headers->content_type;
Expand Down
6 changes: 3 additions & 3 deletions lib/Mojo/Message/Response.pm
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ Mojo::Message::Response - HTTP response
# Parse
my $res = Mojo::Message::Response->new;
$res->parse("HTTP/1.0 200 OK\x0a\x0d");
$res->parse("Content-Length: 12\x0a\x0d\x0a\x0d");
$res->parse("Content-Type: text/plain\x0a\x0d\x0a\x0d");
$res->parse("HTTP/1.0 200 OK\x0d\x0a");
$res->parse("Content-Length: 12\x0d\x0a");
$res->parse("Content-Type: text/plain\x0d\x0a\x0d\x0a");
$res->parse('Hello World!');
say $res->code;
say $res->headers->content_type;
Expand Down

0 comments on commit d8f46b7

Please sign in to comment.