Merge lp:~thomir/launchpad/devel-set-content-type into lp:launchpad
Proposed by
Thomi Richards
on 2015-02-01
| Status: | Merged |
|---|---|
| Approved by: | Colin Watson on 2015-02-04 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 17332 |
| Proposed branch: | lp:~thomir/launchpad/devel-set-content-type |
| Merge into: | lp:launchpad |
| Diff against target: |
80 lines (+42/-3) 2 files modified
lib/lp/registry/browser/productrelease.py (+8/-1) lib/lp/registry/browser/tests/test_productrelease.py (+34/-2) |
| To merge this branch: | bzr merge lp:~thomir/launchpad/devel-set-content-type |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| William Grant | code | 2015-02-01 | Approve on 2015-02-04 |
|
Review via email:
|
|||
Commit Message
Code tarballs and installers are now served with the application/
Description of the Change
Files uploaded as part of a release were previously stored as text/plain when their mimetype could not be guessed from the filename alone.
This branch changes the default, so that 'code tarballs' and 'installer' release types are stored as 'application/
To post a comment you must log in.
| Kit Randel (blr) wrote : | # |
| William Grant (wgrant) wrote : | # |
This is the fallback for when we can't guess the MIME type from the extension, so application/
review:
Approve
(code)

Looks good, however is application/x-gzip a more appropriate mime type for tarballs?