Allow mimetype.NAME.safe to enable viewing files
If mimetype.NAME.safe is true the cat servlet returns the file
content as-is, rather than wrapping it into a ZIP with a random
file name within the archive. This permits the browser to handle
the file as it normally would, such as by displaying it directly
within the browser, or by saving the file to local disk for viewing
through an external application.
Bug: GERRIT-139
Reviewed-by: Cedric Beust <cbeust@google.com>
Signed-off-by: Shawn O. Pearce <sop@google.com>
3 files changed