mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
special case so we don't yell when an empty http body doesn't specify a
content-encoding svn:r3397
This commit is contained in:
parent
b137f6d19f
commit
4826718eac
@ -555,6 +555,8 @@ static int
|
||||
body_is_plausible(const char *body, size_t len, int purpose)
|
||||
{
|
||||
int i;
|
||||
if (len == 0)
|
||||
return 1; /* empty bodies don't need decompression */
|
||||
if (len < 32)
|
||||
return 0;
|
||||
if (purpose != DIR_PURPOSE_FETCH_RENDDESC) {
|
||||
|
Loading…
Reference in New Issue
Block a user