Comment 5 for bug 128982

Revision history for this message
Daniel Hahler (blueyed) wrote :

This looks like is has been fixed:
1. Robert, you're missing Content-Length (which was not required before)
2. Using Content-Length and content, the answer is "501 Not Implemented", which is correct

% telnet launchpadlibrarian.net 80
Trying 91.189.89.228...
Connected to launchpadlibrarian.net.
Escape character is '^]'.
PUT / HTTP/1.0
Content-Length: 5

12345
HTTP/1.1 501 Not Implemented
Date: Tue, 27 Jul 2010 14:39:14 GMT
Server: TwistedWeb/10.0.0
Content-Length: 146
Content-Type: text/html
X-Cache: MISS from nutmeg.canonical.com
X-Cache-Lookup: MISS from nutmeg.canonical.com:3128
Via: 1.0 nutmeg.canonical.com:3128 (squid/2.6.STABLE18)
Via: 1.0 launchpadlibrarian.net
Vary: Accept-Encoding
Connection: close

<html>
  <head><title>501 - Huh?</title></head>
  <body>
    <h1>Huh?</h1>
    <p>I don't know how to treat a PUT request.</p>
  </body>
</html>
Connection closed by foreign host.