Opened at 2011-01-14T05:53:59Z
Closed at 2018-01-05T00:50:54Z
#1307 closed defect (fixed)
support HTTP OPTIONS requests
Reported by: | davidsarah | Owned by: | davidsarah |
---|---|---|---|
Priority: | normal | Milestone: | soon |
Component: | code-frontend-web | Version: | 1.8.1 |
Keywords: | http standards options webdrive easy test-needed | Cc: | |
Launchpad Bug: |
Description (last modified by daira)
secorp was testing the JavaScript webdrive code, and found that it was failing due to lack of support for OPTIONS requests. Here's some code to add to RenderMixin in src/allmydata/web/common.py to support OPTIONS:
def render_OPTIONS(self, ctx) from allmydata import __version__ req = IRequest(ctx) req.setHeader("server", "Tahoe-LAFS gateway v" + __version__) methods = ', '.join([m[7:] for m in dir(self) if m.startswith('render_')]) req.setHeader("allow", methods) req.setHeader("public", methods) req.setHeader("compliance", "rfc=2068, rfc=2616") req.setHeader("content-length", 0) return ""
Change History (5)
comment:1 Changed at 2011-08-13T23:29:53Z by davidsarah
- Keywords easy added
- Milestone changed from 1.9.0 to 1.10.0
- Owner set to davidsarah
- Status changed from new to assigned
comment:2 Changed at 2012-04-01T03:48:33Z by davidsarah
- Milestone changed from 1.11.0 to 1.10.0
comment:3 Changed at 2012-12-20T16:38:59Z by davidsarah
- Milestone changed from 1.10.0 to 1.11.0
comment:4 Changed at 2013-07-08T17:58:22Z by daira
- Description modified (diff)
- Keywords test-needed added
- Priority changed from major to normal
comment:5 Changed at 2018-01-05T00:50:54Z by meejah
- Resolution set to fixed
- Status changed from assigned to closed
Note: See
TracTickets for help on using
tickets.
Fixed via https://github.com/tahoe-lafs/tahoe-lafs/pull/447