comparison roundup/scripts/roundup_server.py @ 5608:5df309febe49

Path to support OPTIONS verb when using rest interface via roundup-server. Also make sure rest interface doesn't hang when processing OPTIONS, DELETE, PATCH which don't have a payload by creating a CONTENT_LENGTH of 0 if these verbs are used and CONTENT_LENGTH is missing.
author John Rouillard <rouilj@ieee.org>
date Fri, 08 Feb 2019 19:39:17 -0500
parents 3d80e7752783
children b3618882f906
comparison
equal deleted inserted replaced
5606:5fc476d4e34c 5608:5df309febe49
253 the server log for more information.</p>'''%ts)) 253 the server log for more information.</p>'''%ts))
254 # out to the logfile 254 # out to the logfile
255 print('EXCEPTION AT', ts) 255 print('EXCEPTION AT', ts)
256 traceback.print_exc() 256 traceback.print_exc()
257 257
258 do_GET = do_POST = do_HEAD = do_PUT = do_DELETE = do_PATCH = run_cgi 258 do_GET = do_POST = do_HEAD = do_PUT = do_DELETE = do_PATCH = do_OPTIONS = run_cgi
259 259
260 def index(self): 260 def index(self):
261 ''' Print up an index of the available trackers 261 ''' Print up an index of the available trackers
262 ''' 262 '''
263 keys = list(self.TRACKER_HOMES.keys()) 263 keys = list(self.TRACKER_HOMES.keys())

Roundup Issue Tracker: http://roundup-tracker.org/