HTTP::Server::PSGI Documentation Request #280

Closed
mikeraz opened this Issue Apr 15, 2012 · 0 comments

Comments

Projects
None yet
2 participants
@mikeraz

mikeraz commented Apr 15, 2012

HTTP::Server::PSGI supports HTTP/1.0 but does not support the RFC required backwards compatibility with v0.9 as illustrated below.

Please consider noting this behavior in the documentation.

Given:

michael@bivy:~/perl$ cat app.psgi
my $app = sub {
return [
200,
[ 'Content-Type' => 'text/plain' ],
['Hello World'],
];
};

michael@bivy:~/perl$ plackup
HTTP::Server::PSGI: Accepting connections at http://0:5000/

michael@bivy:~/dl$ telnet 127.0.0.1 5000
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
GET /
HTTP/1.0 400 Bad Request
Date: Sun, 15 Apr 2012 13:31:33 GMT
Server: HTTP::Server::PSGI
Content-Type: text/plain

Bad RequestConnection closed by foreign host.

@miyagawa miyagawa closed this in 3a49ce6 Aug 13, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment