summaryrefslogtreecommitdiff
path: root/http-internal.h
diff options
context:
space:
mode:
authorAzat Khuzhin <azat@libevent.org>2020-10-27 01:40:34 +0300
committerAzat Khuzhin <azat@libevent.org>2020-10-27 02:13:21 +0300
commite91c4363889cee1de57a8ffa38c24a8127b37c78 (patch)
treec164aa18c79ab760330f00973ae39186dc6bc165 /http-internal.h
parenteb822ac751dd2559b9ea3a04ec4978fe2733f6ce (diff)
downloadlibevent-e91c4363889cee1de57a8ffa38c24a8127b37c78.tar.gz
http: add EVHTTP_URI_HOST_STRIP_BRACKETS
Refs: #1115
Diffstat (limited to 'http-internal.h')
-rw-r--r--http-internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/http-internal.h b/http-internal.h
index 94059065..2d0ae8fc 100644
--- a/http-internal.h
+++ b/http-internal.h
@@ -215,6 +215,9 @@ void evhttp_start_write_(struct evhttp_connection *);
void evhttp_response_code_(struct evhttp_request *, int, const char *);
void evhttp_send_page_(struct evhttp_request *, struct evbuffer *);
+/* [] has been stripped */
+#define _EVHTTP_URI_HOST_HAS_BRACKETS 0x02
+
EVENT2_EXPORT_SYMBOL
int evhttp_decode_uri_internal(const char *uri, size_t length,
char *ret, int decode_plus);