]> granicus.if.org Git - libevent/commitdiff
http: Update allowed_methods field from 16 to 32bits.
authorThomas Bernard <miniupnp@free.fr>
Tue, 2 Apr 2019 13:43:35 +0000 (15:43 +0200)
committerAzat Khuzhin <azat@libevent.org>
Thu, 11 Apr 2019 19:47:55 +0000 (22:47 +0300)
http-internal.h
http.c
include/event2/http.h

index 1f0b25644e94729a4fd6a2fad3853989e4e110c5..72016a01a351b312dcfc887ee74aba808068feac 100644 (file)
@@ -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 3969993f985b38ecaec99696ce8becba83851fe4..00267828eb3ccba6c7efbb4721ffb1941e3f10d1 100644 (file)
--- 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;
 }
index 53c38444fdec518dabb15ad9a1c1be8335e323c2..c9ec117520bfe98013789fafb55191f05097bee3 100644 (file)
@@ -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