diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-04-20 17:05:51 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-04-20 17:05:51 -0400 |
commit | b876916cdae3d1b5c696c2097d7f753e69647c84 (patch) | |
tree | 83cb9b203da20c484f46bf3fda40b03021f0f317 | |
parent | d97e3c2a5e37df0cf1ef49a24147ee251478f693 (diff) | |
download | askbot-b876916cdae3d1b5c696c2097d7f753e69647c84.tar.gz askbot-b876916cdae3d1b5c696c2097d7f753e69647c84.tar.bz2 askbot-b876916cdae3d1b5c696c2097d7f753e69647c84.zip |
a patch to spaceless middleware submitted by MITx guys
-rw-r--r-- | askbot/middleware/spaceless.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/askbot/middleware/spaceless.py b/askbot/middleware/spaceless.py index 9e6b5503..2f5744af 100644 --- a/askbot/middleware/spaceless.py +++ b/askbot/middleware/spaceless.py @@ -23,4 +23,5 @@ class SpacelessMiddleware(object): """ if 'text/html' in response['Content-Type']: response.content = reduce_spaces_between_tags(response.content) + response['Content-Length'] = str(len(response.content)) return response |