Welcome! Log In Create A New Profile

Advanced

[PATCH] Allow PUT requests with empty bodies

Michael Schurter
December 28, 2010 05:02AM
As of 0.8.54 nginx returns a 411 Length Required response upon
receiving a PUT with no Content-Length header. There is nothing in the
HTTP 1.1 RFC that disallows empty PUTs. "Content-Length: n" or
"Transfer-Encoding: chunked" are only required if there is a body.
Therefore I saw no reason for this check to exist and removed it to
permit our RESTful HTTP API to function as currently designed.

PUTs with no body or Content-Length header seem to work as expected as
do PUTs with a Content-Length and body message.

Any chance of getting this patch accepted into nginx 0.8?

Thanks,
Michael Schurter
(schmichael in IRC)
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Allow PUT requests with empty bodies

Michael Schurter 3960 December 28, 2010 05:02AM

Re: [PATCH] Allow PUT requests with empty bodies

Maxim Dounin 1069 December 28, 2010 09:08AM

Re: [PATCH] Allow PUT requests with empty bodies

Michael Schurter 1065 December 28, 2010 03:58PM

Re: [PATCH] Allow PUT requests with empty bodies

Michael Schurter 1384 December 28, 2010 09:00PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 133
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready