diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-04-25 19:00:31 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-04-25 19:01:05 -0400 |
commit | fec3050ea968ae913b108a4c48bce2293b92072c (patch) | |
tree | 224bbcd5c61ba75d638c2609f156532af44afc66 /src/or | |
parent | fd48b757d3a85099057d27a74555d87fcd33936e (diff) | |
download | tor-fec3050ea968ae913b108a4c48bce2293b92072c.tar.gz tor-fec3050ea968ae913b108a4c48bce2293b92072c.zip |
Tests for parse_accept_encoding
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/directory.c | 2 | ||||
-rw-r--r-- | src/or/directory.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 8229279a47..95c3c8481e 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -2792,7 +2792,7 @@ write_http_response_header(dir_connection_t *conn, ssize_t length, /** Parse the compression methods listed in an Accept-Encoding header <b>h</b>, * and convert them to a bitfield where compression method x is supported if * and only if 1 << x is set in the bitfield. */ -static unsigned +STATIC unsigned parse_accept_encoding_header(const char *h) { unsigned result = (1u << NO_METHOD); diff --git a/src/or/directory.h b/src/or/directory.h index 4c52c24049..dc02027e99 100644 --- a/src/or/directory.h +++ b/src/or/directory.h @@ -192,6 +192,7 @@ STATIC int next_random_exponential_delay(int delay, int max_delay); STATIC int parse_hs_version_from_post(const char *url, const char *prefix, const char **end_pos); +STATIC unsigned parse_accept_encoding_header(const char *h); #endif #endif |