comparison roundup/rest.py @ 6543:982460ed0a23

Do not set headers to None This broke WSGI integration with Apache.
author Ralf Schlatterbeck <rsc@runtux.com>
date Tue, 07 Dec 2021 13:18:09 +0100
parents f8df7fed18f6
children 9aa8df0b4426
comparison
equal deleted inserted replaced
6542:58bd05fbf350 6543:982460ed0a23
1254 link = '%s/%s/%s' % (self.data_path, class_name, item_id) 1254 link = '%s/%s/%s' % (self.data_path, class_name, item_id)
1255 self.client.setHeader("Location", link) 1255 self.client.setHeader("Location", link)
1256 1256
1257 self.client.setHeader( 1257 self.client.setHeader(
1258 "Allow", 1258 "Allow",
1259 None 1259 ""
1260 ) 1260 )
1261 self.client.setHeader( 1261 self.client.setHeader(
1262 "Access-Control-Allow-Methods", 1262 "Access-Control-Allow-Methods",
1263 None 1263 ""
1264 ) 1264 )
1265 1265
1266 # set the response body 1266 # set the response body
1267 result = { 1267 result = {
1268 'id': item_id, 1268 'id': item_id,

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