~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to scripts/serveservice

  • Committer: dcoles
  • Date: 2008-04-03 21:59:40 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:721
download/serve: Removed the setting of mime-type here. If it's a download file 
server will set the mimetype to application/octet-stream or application/zip and  
mark it as "attachment" while if it's a serve file then server will only set it 
to the recognised mimetype.

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
        
100
100
    req.write(zipfile.getvalue())
101
101
else:
102
 
    req.content_type = default_mimetype
 
102
    #req.content_type = default_mimetype
103
103
    req.sendfile(filename)