Source

CherryPy / cherrypy / lib / static.py

Author Commit Message Labels Comments Date
Gustavo Picon avatarGustavo Picon
Removed trailing whitespace from the codebase.
Branches
cherrypy-3.2.x
Robert Brewer avatarRobert Brewer
Bye bye, py2/3.
Robert Brewer avatarRobert Brewer
Freeow. The magic cherrypy/_cpcompat.py module to take all our py3k fears away.
Default avatar chbrown
Sphinx docs (rsts) for rest of cherrypy.lib.*
Robert Brewer avatarRobert Brewer
Final fix for #915 (Add "debug=False" arg to builtin Tools).
Robert Brewer avatarRobert Brewer
All internals now use cherrypy.serving.request/response instead of request/response for a speed boost.
Default avatar 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 avatarRobert Brewer
More syncs with python3.
Robert Brewer avatarRobert Brewer
static.serve_fileobj: Allow file-like objects that have no 'fileno' attribute.
Robert Brewer avatarRobert Brewer
New static.serve_fileobj function.
Robert Brewer avatarRobert Brewer
trunk: A bunch more alignments between trunk and python3 syntax.
Default avatar 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 avatarRobert Brewer
Fix for #879 (static.serve_file() should use "application/octet-stream" if it can't determine Content-Type).
Robert Brewer avatarRobert Brewer
Added the mimetypes mentioned in #879.
Robert Brewer avatarRobert 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 avatarRobert Brewer
Long-standing misfeature: staticdir/file should only answer to GET/HEAD.
Robert Brewer avatarRobert Brewer
New test for streaming static files.
Default avatar 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 avatarRobert Brewer
Docstring updates.
Robert Brewer avatarRobert Brewer
Doc tweak.
Robert Brewer avatarRobert Brewer
Moved mimetools to only import if needed.
Default avatar Lakin Wecker
Static tool: allow the use of ~ as a placeholder for a the user's home directory in the path names.
Robert Brewer avatarRobert 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 avatarRobert 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 avatarRobert Brewer
Inline isdir to save a call to os.stat.
Robert Brewer avatarRobert 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 avatarRobert Brewer
API and docstring cleanups:
Robert Brewer avatarRobert Brewer
Overhaul of config system:
Robert Brewer avatarRobert Brewer
Lots of mixedCase to lower_with_underscores.
Robert Brewer avatarRobert Brewer
Fix for #547 (serve_file still uses contentType instead of content_type). Thanks, michele!
  1. Prev
  2. 1
  3. 2
  4. Next
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.