Hatta Wiki
changeset 2226:ffd8f6808c56
fix #76 use WikiResponse in _serve_default
| author | Radomir Dopieralski <sheep-devel@sheep.art.pl> |
|---|---|
| date | Sun Jun 05 13:36:34 2011 +0200 (11 months ago) |
| parents | 990f4ef34207 |
| children | 2ced10ae2ef8 |
| files | .hgignore hatta.py |
line diff
1.1 --- a/.hgignore Sun Apr 10 17:34:41 2011 +0200 1.2 +++ b/.hgignore Sun Jun 05 13:36:34 2011 +0200 1.3 @@ -9,3 +9,6 @@ 1.4 werkzeug/* 1.5 cache/* 1.6 *.DS_Store 1.7 +bin/ 1.8 +lib/ 1.9 +include/
2.1 --- a/hatta.py Sun Apr 10 17:34:41 2011 +0200 2.2 +++ b/hatta.py Sun Jun 05 13:36:34 2011 +0200 2.3 @@ -2735,7 +2735,7 @@ 2.4 2.5 if title in self.storage: 2.6 return self.download(request, title) 2.7 - response = werkzeug.Response(content, mimetype=mime) 2.8 + response = WikiResponse(content, mimetype=mime) 2.9 response.set_etag('/%s/-1' % title) 2.10 response.make_conditional(request) 2.11 return response
