summaryrefslogtreecommitdiff
path: root/tests/simple-httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/simple-httpd.c')
-rw-r--r--tests/simple-httpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/simple-httpd.c b/tests/simple-httpd.c
index 7425f7a5..b63ad04a 100644
--- a/tests/simple-httpd.c
+++ b/tests/simple-httpd.c
@@ -191,7 +191,7 @@ do_put (SoupServer *server, SoupMessage *msg, const char *path)
gboolean created = TRUE;
if (stat (path, &st) != -1) {
- const char *match = soup_message_headers_get (msg->request_headers, "If-None-Match");
+ const char *match = soup_message_headers_get_one (msg->request_headers, "If-None-Match");
if (match && !strcmp (match, "*")) {
soup_message_set_status (msg, SOUP_STATUS_CONFLICT);
return;