Project

General

Profile

Feature #377

Incorrect handling of the 100 (Continue) Status

Added by Anonymous almost 12 years ago. Updated 7 months ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
core
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Missing in 1.5.x:

Description

Lighttpd currently does not handle section 8.2.3 of the HTTP/1.1 spec correctly (it always responds with HTTP/1.1 417 Expectation Failed). As a result many common HTTP/1.1 clients cannot POST data to lighttpd based web servers. (mshtml, Visual Studio, libcurl, HttpClient, HttpWebRequest)

Please see section 8.2.3 of
http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html

-- cody

98_add_chunked_support_1.4.23.diff (10.3 KB) 98_add_chunked_support_1.4.23.diff Patch for support chunked POST in lighttpd 1.4 ricardo, 2010-06-28 17:29

Associated revisions

Revision 37dac9a2 (diff)
Added by gstrauss 8 months ago

[core] support Expect: 100-continue with HTTP/1.1 (fixes #377, #1017, #1953, #2438)

support Expect: 100-continue with HTTP/1.1 requests

Ignore config option server.reject-expect-100-with-417;
server.reject-expect-100-with-417 will be removed in a future release.

x-ref:
"Incorrect handling of the 100 (Continue) Status"
https://redmine.lighttpd.net/issues/377
"'Expect' header gives HTTP error 417"
https://redmine.lighttpd.net/issues/1017
"Improve DAV support to be able to handle git as a client"
https://redmine.lighttpd.net/issues/1953
"Change server.reject-expect-100-with-417 from flag to regular expression matching the URL"
https://redmine.lighttpd.net/issues/2438

History

#1 Updated by Anonymous over 10 years ago

I also see this when Flash 9 tries to upload files in Linux. Oddly, the Windows version of Flash doesn't send this header.

-- edenli+nospam

#2 Updated by darix over 10 years ago

  • Status changed from New to Fixed
  • Resolution set to fixed

this bug is fixed for 1.5.x we wont fix it for 1.4.x though

#3 Updated by Anonymous over 9 years ago

  • Status changed from Fixed to Need Feedback
  • Resolution deleted (fixed)

oh guys, come on. fix this in 1.4.19, who knows when 1.5 will be ready....

#4 Updated by Anonymous over 9 years ago

anonymous: feel free to send a patch. Otherwise, please respect what the developers state.

-- Lfe

#5 Updated by Olaf-van-der-Spek over 9 years ago

Otherwise, please respect what the developers state.

Why?

#6 Updated by hoffie over 9 years ago

Because developers usually know their stuff better than users and probably have good reasons for their statements.
See #1017 in this case.

#7 Updated by stbuehler about 9 years ago

  • Status changed from Need Feedback to Fixed
  • Resolution set to wontfix
  1. not a bug - see http://tools.ietf.org/html/rfc2616#section-14.20
  2. if you think it is a trivial fix, then please provide a patch.
  3. fix your clients

#8 Updated by stbuehler almost 9 years ago

  • Status changed from Fixed to Wontfix

#9 Updated by ricardo about 7 years ago

I messed where I posted the comment. My apologies.

#10 Updated by gstrauss 9 months ago

  • Description updated (diff)
  • Status changed from Wontfix to Patch Pending
  • Target version set to 1.4.45

related: https://redmine.lighttpd.net/boards/3/topics/81

Transfer-Encoding: chunked is supported in lighttpd 1.4.44
Expect: 100-continue will be supported in lighttpd 1.4.46
This will replace the current behavior of sending 417 Expectation Failed, which is RFC compliant, but not very friendly, if server.reject-expect-100-with-417 = "enable", which is the default for some historical reason. (See #1017)

#11 Updated by gstrauss 9 months ago

  • Target version changed from 1.4.45 to 1.4.46

#12 Updated by gstrauss 7 months ago

  • Status changed from Patch Pending to Fixed
  • % Done changed from 0 to 100

Also available in: Atom