Skip to content

Loading…

HTTP::Server::PSGI Documentation Request #280

Closed
mikeraz opened this Issue · 0 comments

2 participants

@mikeraz

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.