Merge lp:~bac/charmworld/bug-1208035 into lp:~juju-jitsu/charmworld/trunk
Proposed by
Brad Crittenden
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Brad Crittenden | ||||
Approved revision: | 336 | ||||
Merged at revision: | 337 | ||||
Proposed branch: | lp:~bac/charmworld/bug-1208035 | ||||
Merge into: | lp:~juju-jitsu/charmworld/trunk | ||||
Diff against target: |
52 lines (+13/-2) 2 files modified
charmworld/views/api.py (+6/-2) charmworld/views/tests/test_api.py (+7/-0) |
||||
To merge this branch: | bzr merge lp:~bac/charmworld/bug-1208035 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Aaron Bentley (community) | Approve | ||
Review via email: mp+178849@code.launchpad.net |
Commit message
Return a 404 if no path information is passed to API URL for charm or bundle.
Description of the change
If the API URL for a charm or bundle is hit with no path information the handler was throwing an error as the path was non-optional, e.g.
http://
or
http://
This branch allows the path to be empty but returns a 404 instead.
To post a comment you must log in.