diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-04-02 16:11:26 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-04-02 16:11:26 +0200 |
commit | 79bcf15131bf73a56f3839733ae8eeb11aa3680f (patch) | |
tree | 3d9fe0b20039c4621a048a346ebfe56aa6230679 | |
parent | 316b3d2adbbbe378da0f1b470de10b03ea82beb4 (diff) |
comment code
-rw-r--r-- | src/backend/taler-merchant-httpd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c index 6de0e940..611be6bf 100644 --- a/src/backend/taler-merchant-httpd.c +++ b/src/backend/taler-merchant-httpd.c @@ -1766,6 +1766,7 @@ url_handler (void *cls, hc->rh = rh; break; } + /* Handle HTTP 405: METHOD NOT ALLOWED case */ if ( (NULL == hc->rh) && (url_found) ) { @@ -1774,6 +1775,7 @@ url_handler (void *cls, char *allowed = NULL; GNUNET_break_op (0); + /* compute 'Allowed:' header (required by HTTP spec for 405 replies) */ for (unsigned int i = 0; NULL != handlers[i].url_prefix; i++) { struct TMH_RequestHandler *rh = &handlers[i]; |