brotli: set header to timeout if timeout was immmediate (0)
This commit is contained in:
parent
0e185c67a5
commit
a649d21549
|
@ -44,8 +44,8 @@ class BrotliCache(object):
|
||||||
if self.timeout > 0:
|
if self.timeout > 0:
|
||||||
t.join(self.timeout)
|
t.join(self.timeout)
|
||||||
encbody = self.redis.get(cache_key)
|
encbody = self.redis.get(cache_key)
|
||||||
if not encbody:
|
if not encbody:
|
||||||
response.headers.set('x-brotli-cache', 'TIMEOUT')
|
response.headers.set('x-brotli-cache', 'TIMEOUT')
|
||||||
else:
|
else:
|
||||||
response.headers.set('x-brotli-cache', 'LOCKED')
|
response.headers.set('x-brotli-cache', 'LOCKED')
|
||||||
if encbody:
|
if encbody:
|
||||||
|
|
Loading…
Reference in New Issue