This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push: new ff6064d565 update terms about partial PUT - a PUT with Content-Range Header (#795) ff6064d565 is described below commit ff6064d5650586c91eb06e37c87a33749c918b7d Author: Chenjp <ch...@msn.com> AuthorDate: Mon Dec 16 15:50:35 2024 +0800 update terms about partial PUT - a PUT with Content-Range Header (#795) RFC7231#4.3.4: An origin server that allows PUT on a given target resource MUST send a 400 (Bad Request) response to a PUT request that contains a Content-Range header field --- conf/web.xml | 10 +++++----- webapps/docs/default-servlet.xml | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/conf/web.xml b/conf/web.xml index 3d38f81640..2d8b4cb82c 100644 --- a/conf/web.xml +++ b/conf/web.xml @@ -109,11 +109,11 @@ <!-- listings is enabled? [true] --> <!-- --> <!-- allowPartialPut Should the server treat an HTTP PUT request --> - <!-- with a Range header as a partial PUT? Note --> - <!-- that while RFC 7233 clarified that Range --> - <!-- headers only valid for GET requests, RFC 9110 --> - <!-- (which obsoletes RFC 7233) now allows partial --> - <!-- puts. [true] --> + <!-- with a Content-Range header as a partial PUT? --> + <!-- Note that while RFC 7231 clarified that such a --> + <!-- PUT with a Content-Range header field is a bad --> + <!-- request, RFC 9110 (which obsoletes RFC 7231) --> + <!-- now allows partial PUT. [true] --> <servlet> <servlet-name>default</servlet-name> diff --git a/webapps/docs/default-servlet.xml b/webapps/docs/default-servlet.xml index 38a6068c2b..b02eb5c1b5 100644 --- a/webapps/docs/default-servlet.xml +++ b/webapps/docs/default-servlet.xml @@ -209,10 +209,10 @@ Tomcat.</p> Should the server list all directories before all files. [false] </property> <property name="allowPartialPut"> - Should the server treat an HTTP PUT request with a Range header as a - partial PUT? Note that while RFC 7233 clarified that Range headers only - valid for GET requests, RFC 9110 (which obsoletes RFC 7233) now allows - partial puts. [true] + Should the server treat an HTTP PUT request with a Content-Range header + as a partial PUT? Note that while RFC 7231 clarified that such a PUT + with a Content-Range header field is a bad request, RFC 9110 + (which obsoletes RFC 7231) now allows partial PUT. [true] </property> </properties> </section> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org