You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2024/11/25 12:54:06 UTC
(tomcat) branch 9.0.x updated: Add absolute URI as destination to improve coverage
This is an automated email from the ASF dual-hosted git repository.
remm 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 0fd8d25bbb Add absolute URI as destination to improve coverage
0fd8d25bbb is described below
commit 0fd8d25bbb001b67974a528c72e73f37376f5140
Author: remm <re...@apache.org>
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 b8e206bd54..084cfcdf74 100644
--- a/test/org/apache/catalina/servlets/TestWebdavServlet.java
+++ b/test/org/apache/catalina/servlets/TestWebdavServlet.java
@@ -587,7 +587,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();
@@ -616,7 +616,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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org