
codesite-noreply at google
Feb 8, 2010, 12:30 PM
Post #1 of 7
(860 views)
Permalink
|
|
Issue 733 in cherokee: options request returns 411 length required
|
|
Status: New Owner: ---- New issue 733 by eibolsoe: options request returns 411 length required http://code.google.com/p/cherokee/issues/detail?id=733 What steps will reproduce the problem? 1. install cherokee 0.99.42 2. make it serve static files from a directory 3. send a plain OPTIONS request to a known file, without Content-Length: 0 What is the expected output? What do you see instead? Expected: as below (response from a request with added Content-Length: 0). Usually without the body, as that is uncommon in OPTIONS responses. (But not forbidden.) HTTP/1.1 200 OK Connection: Keep-Alive Keep-Alive: timeout=15 Date: Mon, 08 Feb 2010 20:19:53 GMT Server: Cherokee/0.99.42 (UNIX) Allow: GET, HEAD, POST, OPTIONS ETag: 4a1eb95f=2e Last-Modified: Thu, 28 May 2009 16:18:39 GMT Content-Type: text/html Content-Length: 46 <HTML> <BODY> <H1>Blarg!</H1> </BODY> </HTML> Instead: knan [at] viconi:~$ telnet localhost 8136 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. OPTIONS /index.html HTTP/1.1 Host: localhost HTTP/1.1 411 Length Required Connection: close Date: Mon, 08 Feb 2010 20:16:08 GMT Server: Cherokee/0.99.42 (UNIX) Allow: GET, HEAD, POST, OPTIONS Content-Length: 296 Content-Type: text/html Cache-Control: no-cache Pragma: no-cache <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html> <head><title>411 Length Required</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <h1>411 Length Required</h1> <p><hr> Cherokee web server 0.99.42 (UNIX), Port 8136 </body> </html> Connection closed by foreign host. What version of the product are you using? On what operating system? Cherokee 0.99.42, Ubuntu 9.10 i386 Please provide any additional information below. Cherokee 0.99.42 responds 411 Length required to a plain OPTIONS request with no Content-Length header. Body isn't defined in options requests, so specifying Content-Length: 0 doesn't make much sense. No other web server I've tested requires this, so I'm betting it is an unintentional bug. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings _______________________________________________ Cherokee-dev mailing list Cherokee-dev [at] lists http://lists.octality.com/listinfo/cherokee-dev
|