[libsoup/wip/soup-uri-removal] redirect-test: do not compare path with encoded string



commit 308b4747da83bb833d54c2871eb9a4280396f979
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Tue Oct 13 18:21:20 2020 +0200

    redirect-test: do not compare path with encoded string
    
    The server decodes paths.

 tests/redirect-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/redirect-test.c b/tests/redirect-test.c
index 153a62d7..23d14574 100644
--- a/tests/redirect-test.c
+++ b/tests/redirect-test.c
@@ -318,7 +318,7 @@ server_callback (SoupServer *server, SoupMessage *msg,
                        soup_message_headers_replace (msg->response_headers,
                                                      "Location",
                                                      "about:blank");
-               } else if (!strcmp (path, "/bad%20with%20spaces"))
+               } else if (!strcmp (path, "/bad with spaces"))
                        soup_message_set_status (msg, SOUP_STATUS_OK);
                else
                        soup_message_set_status (msg, SOUP_STATUS_NOT_FOUND);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]