From 536311a46b407902ca0ee52d504c327ec54cfdf1 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 4 Nov 2010 12:39:41 -0400 Subject: evhttp: Return 501 when we get an unrecognized method, not 400. --- http-internal.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'http-internal.h') diff --git a/http-internal.h b/http-internal.h index b320e2d6..e32511e3 100644 --- a/http-internal.h +++ b/http-internal.h @@ -41,6 +41,9 @@ struct evbuffer; struct addrinfo; struct evhttp_request; +/* Indicates an unknown request method. */ +#define _EVHTTP_REQ_UNKNOWN (1<<15) + enum evhttp_connection_state { EVCON_DISCONNECTED, /**< not currently connected not trying either*/ EVCON_CONNECTING, /**< tries to currently connect */ -- cgit v1.2.1