This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/11.0.x by this push:
     new f1f2d15109 Add absolute URI as destination to improve coverage
f1f2d15109 is described below

commit f1f2d151092ff6f70b88ea4c183d0a8d1b256cc7
Author: remm <[email protected]>
AuthorDate: Mon Nov 25 13:51:58 2024 +0100

    Add absolute URI as destination to improve coverage
---
 test/org/apache/catalina/servlets/TestWebdavServlet.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/org/apache/catalina/servlets/TestWebdavServlet.java 
b/test/org/apache/catalina/servlets/TestWebdavServlet.java
index da57616bc1..007f3ead95 100644
--- a/test/org/apache/catalina/servlets/TestWebdavServlet.java
+++ b/test/org/apache/catalina/servlets/TestWebdavServlet.java
@@ -588,7 +588,7 @@ public class TestWebdavServlet extends TomcatBaseTest {
         // Copy /myfolder/file5.txt to /myfolder/file6.txt without lock 
(should not work)
         client.setRequest(new String[] { "COPY /myfolder/file5.txt HTTP/1.1" + 
SimpleHttpClient.CRLF +
                 "Host: localhost:" + getPort() + SimpleHttpClient.CRLF +
-                "Destination: /myfolder/file6.txt"  + SimpleHttpClient.CRLF +
+                "Destination: http://localhost:"; + getPort() + 
"/myfolder/file6.txt"  + SimpleHttpClient.CRLF +
                 "Connection: Close" + SimpleHttpClient.CRLF +
                 SimpleHttpClient.CRLF });
         client.connect();
@@ -617,7 +617,7 @@ public class TestWebdavServlet extends TomcatBaseTest {
         // Copy /myfolder/file5.txt to /file7.txt without lock (should work)
         client.setRequest(new String[] { "COPY /myfolder/file5.txt HTTP/1.1" + 
SimpleHttpClient.CRLF +
                 "Host: localhost:" + getPort() + SimpleHttpClient.CRLF +
-                "Destination: /file7.txt"  + SimpleHttpClient.CRLF +
+                "Destination: http://localhost:"; + getPort() + "/file7.txt"  + 
SimpleHttpClient.CRLF +
                 "Connection: Close" + SimpleHttpClient.CRLF +
                 SimpleHttpClient.CRLF });
         client.connect();


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to