From 472853442f481e309d38e46d40ba22e01f76f1f1 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 26 Sep 2017 13:56:33 +0200 Subject: fix calculation of 'Expires:' header, also handle HTTP HEAD requests --- src/exchange/taler-exchange-httpd.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/exchange/taler-exchange-httpd.c') diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index 25021f30f..60b781032 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -320,6 +320,9 @@ handle_mhd_request (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Handling request for URL '%s'\n", url); + if (0 == strcasecmp (method, + MHD_HTTP_METHOD_HEAD)) + method = MHD_HTTP_METHOD_GET; /* treat HEAD as GET here, MHD will do the rest */ for (unsigned int i=0;NULL != handlers[i].url;i++) { rh = &handlers[i]; -- cgit v1.2.3