From: Thomas Bernard Date: Tue, 2 Apr 2019 13:43:35 +0000 (+0200) Subject: http: Update allowed_methods field from 16 to 32bits. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96e56beb9426df17d9a75483f7c6b438a6577cf4;p=libevent http: Update allowed_methods field from 16 to 32bits. --- diff --git a/http-internal.h b/http-internal.h index 1f0b2564..72016a01 100644 --- a/http-internal.h +++ b/http-internal.h @@ -163,7 +163,7 @@ struct evhttp { /* Bitmask of all HTTP methods that we accept and pass to user * callbacks. */ - ev_uint16_t allowed_methods; + ev_uint32_t allowed_methods; /* Fallback callback if all the other callbacks for this connection don't match. */ diff --git a/http.c b/http.c index 3969993f..00267828 100644 --- a/http.c +++ b/http.c @@ -4035,7 +4035,7 @@ evhttp_set_default_content_type(struct evhttp *http, } void -evhttp_set_allowed_methods(struct evhttp* http, ev_uint16_t methods) +evhttp_set_allowed_methods(struct evhttp* http, ev_uint32_t methods) { http->allowed_methods = methods; } diff --git a/include/event2/http.h b/include/event2/http.h index 53c38444..c9ec1175 100644 --- a/include/event2/http.h +++ b/include/event2/http.h @@ -246,7 +246,7 @@ void evhttp_set_default_content_type(struct evhttp *http, @param methods bit mask constructed from evhttp_cmd_type values */ EVENT2_EXPORT_SYMBOL -void evhttp_set_allowed_methods(struct evhttp* http, ev_uint16_t methods); +void evhttp_set_allowed_methods(struct evhttp* http, ev_uint32_t methods); /** Set a callback for a specified URI