Merge lp:~abentley/charmworld/icon-as-file into lp:~juju-jitsu/charmworld/trunk
Proposed by
Aaron Bentley
Status: | Merged |
---|---|
Approved by: | Aaron Bentley |
Approved revision: | 232 |
Merged at revision: | 229 |
Proposed branch: | lp:~abentley/charmworld/icon-as-file |
Merge into: | lp:~juju-jitsu/charmworld/trunk |
Diff against target: |
194 lines (+74/-11) 4 files modified
charmworld/models.py (+16/-1) charmworld/tests/test_models.py (+19/-0) charmworld/views/api.py (+13/-10) charmworld/views/tests/test_api.py (+26/-0) |
To merge this branch: | bzr merge lp:~abentley/charmworld/icon-as-file |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | code | Approve | |
Review via email: mp+164262@code.launchpad.net |
Commit message
Store icon.svg
Description of the change
This branch enables using charm/file to retrieve the icon for a charm.
As well as ensuring it's provided, it also ensures the HTTP headers are suitable-- the MIME type is provided, and Cache-Control ensures that icons are cached for 24 hours. It is save to cache them this long because they change rarely, and when they do change, their default URL also changes.
To post a comment you must log in.
Thank you.