Merge lp://staging/~mnordhoff/loggerhead/serve_branches_robots.txt into lp://staging/loggerhead
Proposed by
Matt Nordhoff
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp://staging/~mnordhoff/loggerhead/serve_branches_robots.txt |
Merge into: | lp://staging/loggerhead |
Diff against target: |
30 lines (+5/-1) 1 file modified
loggerhead/apps/transport.py (+5/-1) |
To merge this branch: | bzr merge lp://staging/~mnordhoff/loggerhead/serve_branches_robots.txt |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Albisetti | Approve | ||
Review via email: mp+15262@code.staging.launchpad.net |
To post a comment you must log in.
Updating diff...
An updated diff will be available in a few minutes. Reload to see the changes.
Loggerhead is supposed to support serving /robots.txt. This worked with loggerhead. apps.config, but it wasn't wired in to loggerhead. apps.transport.
I also added a little WSGI wrapper doodad to convert ENOENT and EACCES to HTTPNotFound and HTTPForbidden, respectively, so that users will get a nice 404 instead of an Internal Server Error if the file doesn't actually exist.
...But LP hasn't mirrored that bit yet. Arrgh. Here's the diff for that:
<http:// bzr.mattnordhof f.com/loggerhea d/loggerhead/ serve_branches_ robots. txt/revision/ 395>
This change works and all. I'd land it myself, but I want to confirm that my WSGI wrapper isn't _too_ ugly. :)