diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-09-26 13:56:33 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-09-26 13:56:33 +0200 |
commit | 472853442f481e309d38e46d40ba22e01f76f1f1 (patch) | |
tree | 193720cec3c71add324644e104701c374d6c7fad /src/exchange/taler-exchange-httpd.c | |
parent | a8de810bf7b78308976791b78311c36b69139b26 (diff) | |
download | exchange-472853442f481e309d38e46d40ba22e01f76f1f1.tar.gz exchange-472853442f481e309d38e46d40ba22e01f76f1f1.tar.bz2 exchange-472853442f481e309d38e46d40ba22e01f76f1f1.zip |
fix calculation of 'Expires:' header, also handle HTTP HEAD requests
Diffstat (limited to 'src/exchange/taler-exchange-httpd.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd.c | 3 |
1 files changed, 3 insertions, 0 deletions
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]; |