Merge lp:~benji/launchpad/bug-621090 into lp:launchpad
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Māris Fogels on 2010-11-09 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 11896 | ||||
| Proposed branch: | lp:~benji/launchpad/bug-621090 | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
83 lines (+36/-2) 4 files modified
lib/lp/bugs/browser/bugsubscription.py (+1/-0) lib/lp/bugs/browser/tests/test_bugsubscription_views.py (+24/-2) lib/lp/code/browser/branch.py (+1/-0) lib/lp/code/browser/tests/test_branch.py (+10/-0) |
||||
| To merge this branch: | bzr merge lp:~benji/launchpad/bug-621090 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Māris Fogels (community) | 2010-11-09 | Approve on 2010-11-09 | |
|
Review via email:
|
|||
Commit Message
[r=mars][ui=none][bug=621090] fix content type on two JSON views
Description of the Change
There are some views that generate JSON but don't explicitly set the
content type which forces the publisher to guess, and being
plain-text-esque, it guesses text/plain (bug 621090).
Besides offending the sensibilities of the more genteel among us, this
causes the site search to index the JSON documents instead of ignoring
them (e.g., the more than half a million search results for
https:/
This branch fixes the content type for the view given in bug 621090 as
well as another instance of this class of bugs. I tried to find -- by
various means -- other instances but to no avail.
The following lint was fixed as well:
./lib/lp/
170: E501 line too long (82 characters)
170: Line exceeds 78 characters.
| Benji York (benji) wrote : | # |
On Tue, Nov 9, 2010 at 2:39 PM, Māris Fogels <email address hidden> wrote:
> This looks good. It looks like you spelled the header as
> 'content-type' in one place, and 'Content-Type' in the other. With
> that fix, r=mars.
Indeed. Fixed. Thanks.
--
Benji York

Hi Benji,
This looks good. It looks like you spelled the header as 'content-type' in one place, and 'Content-Type' in the other. With that fix, r=mars.