You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2024/05/03 08:23:44 UTC
(tomcat) 01/03: Fix copy/paste of comment from POST to PATCH
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit ef0b4b18846d3ee4c9f6a9b4d8819c28645795c2
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri May 3 08:30:03 2024 +0100
Fix copy/paste of comment from POST to PATCH
---
java/jakarta/servlet/http/HttpServlet.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/java/jakarta/servlet/http/HttpServlet.java b/java/jakarta/servlet/http/HttpServlet.java
index 0bcdbcbbf7..354d51fd97 100644
--- a/java/jakarta/servlet/http/HttpServlet.java
+++ b/java/jakarta/servlet/http/HttpServlet.java
@@ -242,10 +242,10 @@ public abstract class HttpServlet extends GenericServlet {
* When using HTTP 1.1 chunked encoding (which means that the response has a Transfer-Encoding header), do not set
* the Content-Length header.
* <p>
- * This method does not need to be either safe or idempotent. Operations requested through POST can have side
- * effects for which the user can be held accountable, for example, updating stored data or buying items online.
+ * This method is neither safe nor idempotent. Operations requested through PATCH have side effects for which the
+ * user can be held accountable.
* <p>
- * If the HTTP POST request is incorrectly formatted, <code>doPost</code> returns an HTTP "Bad Request" message.
+ * If the HTTP PATCH request is incorrectly formatted, <code>doPost</code> returns an HTTP "Bad Request" message.
*
* @param req an {@link HttpServletRequest} object that contains the request the client has made of the servlet
* @param resp an {@link HttpServletResponse} object that contains the response the servlet sends to the client
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org