use strcasecmp for methods
This commit is contained in:
parent
d61c2e400a
commit
401a1f82ef
@ -425,14 +425,14 @@ handle_mhd_request (void *cls,
|
||||
|
||||
/* The URL is a match! What we now do depends on the method. */
|
||||
|
||||
if (0 == strcmp (method, MHD_HTTP_METHOD_OPTIONS))
|
||||
if (0 == strcasecmp (method, MHD_HTTP_METHOD_OPTIONS))
|
||||
{
|
||||
GNUNET_async_scope_restore (&old_scope);
|
||||
return TALER_MHD_reply_cors_preflight (connection);
|
||||
}
|
||||
|
||||
if ( (NULL == rh->method) ||
|
||||
(0 == strcmp (method,
|
||||
(0 == strcasecmp (method,
|
||||
rh->method)) )
|
||||
{
|
||||
/* FIXME: consider caching 'rh' in '**connection_cls' to
|
||||
|
Loading…
Reference in New Issue
Block a user