##// END OF EJS Templates
hgweb: discard Content-Type header for 304 responses (issue5844)...
hgweb: discard Content-Type header for 304 responses (issue5844) A side-effect of 98baf8dea553 was that hgwebdir always sets a global default for the Content-Type header. HTTP 304 responses don't allow the Content-Type header. So a side-effect of this change was that HTTP 304 responses served via hgwebdir resulted in a ProgrammingError being raised. This commit teaches our 304 response issuing code to drop the Content-Type header. Differential Revision: https://phab.mercurial-scm.org/D3435

File last commit:

r37513:b1fb341d default
r37846:11ee9bf2 stable
Show More
test_estimate_sizes.py
15 lines | 271 B | text/x-python | PythonLexer
import unittest
import zstandard as zstd
from . common import (
make_cffi,
)
@make_cffi
class TestSizes(unittest.TestCase):
def test_decompression_size(self):
size = zstd.estimate_decompression_context_size()
self.assertGreater(size, 100000)