- The static file response object used by ``config.add_static_view`` opened
the static file twice, when it only needed to open it once.
| | |
| | | |
| | | - The ``pyramid.registry.noop_introspector`` API object has been removed. |
| | | |
| | | Bug Fixes |
| | | --------- |
| | | |
| | | - The static file response object used by ``config.add_static_view`` opened |
| | | the static file twice, when it only needed to open it once. |
| | | |
| | | 1.3a8 (2012-02-19) |
| | | ================== |
| | | |
| | |
| | | if 'wsgi.file_wrapper' in environ: |
| | | app_iter = environ['wsgi.file_wrapper'](f, _BLOCK_SIZE) |
| | | else: |
| | | app_iter = _FileIter(open(path, 'rb'), _BLOCK_SIZE) |
| | | app_iter = _FileIter(f, _BLOCK_SIZE) |
| | | self.app_iter = app_iter |
| | | # assignment of content_length must come after assignment of app_iter |
| | | self.content_length = content_length |