Source

CherryPy / cherrypy / lib / static.py

Author Commit Message Labels Comments Date
Gustavo Picon
Removed trailing whitespace from the codebase.
Branches
cherrypy-3.2.x
Robert Brewer
Bye bye, py2/3.
Robert Brewer
Freeow. The magic cherrypy/_cpcompat.py module to take all our py3k fears away.
chbrown
Sphinx docs (rsts) for rest of cherrypy.lib.*
Robert Brewer
Final fix for #915 (Add "debug=False" arg to builtin Tools).
Robert Brewer
All internals now use cherrypy.serving.request/response instead of request/response for a speed boost.
visteya
Added a cautionary note to the docstring for serve_fileobj(), regarding the seek() performed on the file object when the request has a 'Range' header, and how this may result in incorrect behavior.
Robert Brewer
More syncs with python3.
Robert Brewer
static.serve_fileobj: Allow file-like objects that have no 'fileno' attribute.
Robert Brewer
New static.serve_fileobj function.
Robert Brewer
trunk: A bunch more alignments between trunk and python3 syntax.
Lakin Wecker
trunk - Porting the cherrypy.lib.httputil name change. It'll be easier to maintain two released branches if the modules are named the same. However, in the 2.6 branch we'll leave cherrypy.lib.http working and deprecate it for 3.3.
Robert Brewer
Fix for #879 (static.serve_file() should use "application/octet-stream" if it can't determine Content-Type).
Robert Brewer
Added the mimetypes mentioned in #879.
Robert Brewer
Now that error_log defaults to INFO, we can emit a DEBUG message once in a great while (but not too many; they're still slow even if they never emit).
Robert Brewer
Long-standing misfeature: staticdir/file should only answer to GET/HEAD.
Robert Brewer
New test for streaming static files.
visteya
Change lib.static.serve_file() to use a file generator for requests with Ranges, rather than read entire range into memory. Closes #859.
Robert Brewer
Docstring updates.
Robert Brewer
Doc tweak.
Robert Brewer
Moved mimetools to only import if needed.
Lakin Wecker
Static tool: allow the use of ~ as a placeholder for a the user's home directory in the path names.
Robert Brewer
Fix for #689 (add equivalent of trailing_slash tool for static content). The staticdir tool now sets request.is_index if needed. The trailing_slash tool priority was increased to allow most before_handler tools a chance to set is_index.
Robert Brewer
Trunk fix for #577 (GzipFilter doesn't force an update of the Content-Length header). All code which could change the length of response.body should delete the Content-Length header (if already set).
Robert Brewer
Inline isdir to save a call to os.stat.
Robert Brewer
Fix to 2.1, 2.2, 3.0 for bugs in Range slicing and final boundary. Also made the output match Apache output (CRLFs).
Robert Brewer
API and docstring cleanups:
Robert Brewer
Overhaul of config system:
Robert Brewer
Lots of mixedCase to lower_with_underscores.
Robert Brewer
Fix for #547 (serve_file still uses contentType instead of content_type). Thanks, michele!
  1. Prev
  2. 1
  3. 2
  4. Next