test a variety of method names in test_safs_proxy_get_uri_from_clfreq default tip

Fri, 13 Feb 2026 12:18:12 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Fri, 13 Feb 2026 12:18:12 +0100
changeset 670
73987de73246
parent 669
ccdc97fd8204

test a variety of method names in test_safs_proxy_get_uri_from_clfreq

src/server/safs/proxy.c file | annotate | diff | comparison | revisions
--- a/src/server/safs/proxy.c	Fri Feb 13 12:16:09 2026 +0100
+++ b/src/server/safs/proxy.c	Fri Feb 13 12:18:12 2026 +0100
@@ -123,15 +123,15 @@
         
         ret = get_uri_from_clfreq("GET /uri HTTP/1.1");
         CX_TEST_ASSERT(!cx_strcmp(ret, "/uri"));
-        ret = get_uri_from_clfreq("GET / HTTP/1.1");
+        ret = get_uri_from_clfreq("G / HTTP/1.1");
         CX_TEST_ASSERT(!cx_strcmp(ret, "/"));
-        ret = get_uri_from_clfreq("GET   /test%20/path HTTP/1.1");
+        ret = get_uri_from_clfreq("POST   /test%20/path HTTP/1.1");
         CX_TEST_ASSERT(!cx_strcmp(ret, "/test%20/path"));
         ret = get_uri_from_clfreq("   GET /leading_space HTTP/1.1");
         CX_TEST_ASSERT(!cx_strcmp(ret, "/leading_space"));
-        ret = get_uri_from_clfreq("   GET   /space2 HTTP/1.1");
+        ret = get_uri_from_clfreq("   PROPFIND   /space2 HTTP/1.1");
         CX_TEST_ASSERT(!cx_strcmp(ret, "/space2"));
-        ret = get_uri_from_clfreq("GET /trailing_space     HTTP/1.1");
+        ret = get_uri_from_clfreq("HEAD /trailing_space     HTTP/1.1");
         CX_TEST_ASSERT(!cx_strcmp(ret, "/trailing_space"));
         ret = get_uri_from_clfreq("   GET   /space3     HTTP/1.1   ");
         CX_TEST_ASSERT(!cx_strcmp(ret, "/space3"));

mercurial