Subject: | Body of "0" fails to work |
$ plackup -s Net::Async::HTTP::Server -e"sub { [ 200, [ 'Content-Type' => 'text/plain' ], ['0'] ] }"
...
$ wget -O - http://localhost:5000/
--2015-01-12 17:56:13-- http://localhost:5000/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:5000... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1 [text/plain]
Saving to: ‘STDOUT’
- 0%[ ] 0 --.-KB/s ^C
$ telnet localhost 5000
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET / HTTP/1.1
HTTP/1.1 200 OK
Content-Length: 1
Content-Type: text/plain
^C^]
Show quoted text
telnet> quit
Connection closed.
--
Paul Evans