diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2018-09-14 12:12:22 +0300 |
---|---|---|
committer | Claudio Saavedra <csaavedra@igalia.com> | 2019-05-22 14:59:14 +0000 |
commit | 60fd02bd2d27e0b74626efc9da2486184cab3852 (patch) | |
tree | d1e5d7e3ab209f213c4056f5629b063025c6f248 | |
parent | 81f160ba759724826adecbdb50b63fca439d46eb (diff) | |
download | libsoup-60fd02bd2d27e0b74626efc9da2486184cab3852.tar.gz |
Improve the multiple-headers test
Ensure that the multiple-headers test checks that only the first
one is honored and the second one ignored.
-rw-r--r-- | tests/hsts-test.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/hsts-test.c b/tests/hsts-test.c index 5ce67886..7b0cf673 100644 --- a/tests/hsts-test.c +++ b/tests/hsts-test.c @@ -64,7 +64,7 @@ server_callback (SoupServer *server, SoupMessage *msg, "max-age=31536000; includeSubDomains"); soup_message_headers_append (msg->response_headers, "Strict-Transport-Security", - "max-age=0; includeSubDomains"); + "max-age=1; includeSubDomains"); } else if (strcmp (path, "/missing-values") == 0) { soup_message_headers_append (msg->response_headers, "Strict-Transport-Security", @@ -291,7 +291,8 @@ do_hsts_multiple_headers_test (void) { SoupSession *session = hsts_session_new (NULL); session_get_uri (session, "https://localhost/multiple-headers", SOUP_STATUS_OK); - session_get_uri (session, "http://localhost/multiple-headers", SOUP_STATUS_OK); + sleep(2); + session_get_uri (session, "http://localhost", SOUP_STATUS_OK); soup_test_session_abort_unref (session); } |