Changeset 0623f9 in indico


Ignore:
Timestamp:
11/28/11 17:10:13 (18 months ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
Branches:
master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
Children:
8bb8a7
Parents:
df2ee4
Message:

[FIX] Properly handle OPTIONS method (501)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/web/wsgi/indico_wsgi_handler.py

    r46701b r0623f9  
    7373    ## see: <http://code.google.com/p/modwsgi/wiki/ApplicationIssues> 
    7474    req = SimulatedModPythonRequest(environ, start_response) 
     75 
     76    if req.method == 'OPTIONS': 
     77        data = 'Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD' 
     78        start_response("501 Not Implemented", [], None) 
     79        return '' 
    7580 
    7681    possible_module, possible_handler = is_mp_legacy_publisher_path(req) 
Note: See TracChangeset for help on using the changeset viewer.