From: SVN c. m. f. t. SWORD-A. p. <swo...@li...> - 2012-05-01 15:51:59
|
Revision: 509 http://sword-app.svn.sourceforge.net/sword-app/?rev=509&view=rev Author: richard-jones Date: 2012-05-01 15:51:53 +0000 (Tue, 01 May 2012) Log Message: ----------- explicitly cast location headers to string for supporting mod_wsgi Modified Paths: -------------- sss/branches/sss-2/sss/pylons_sword_controller.py Modified: sss/branches/sss-2/sss/pylons_sword_controller.py =================================================================== --- sss/branches/sss-2/sss/pylons_sword_controller.py 2012-04-30 15:23:48 UTC (rev 508) +++ sss/branches/sss-2/sss/pylons_sword_controller.py 2012-05-01 15:51:53 UTC (rev 509) @@ -610,7 +610,7 @@ # created ssslog.info("Item created") response.content_type = "application/atom+xml;type=entry" - response.headers["Location"] = result.location + response.headers["Location"] = str(result.location) # explicit cast to string response.status_int = 201 response.status = "201 Created" if config.return_deposit_receipt: @@ -744,7 +744,7 @@ result = ss.add_content(path, deposit) response.content_type = "application/atom+xml;type=entry" - response.headers["Location"] = result.location + response.headers["Location"] = str(result.location) # explict cast to str response.status_int = 201 response.status = "201 Created" if config.return_deposit_receipt: @@ -869,7 +869,7 @@ ss = SwordServer(config, auth) result = ss.replace(path, deposit) - response.headers["Location"] = result.location + response.headers["Location"] = str(result.location) # explicit cast to str if config.return_deposit_receipt: response.content_type = "application/atom+xml;type=entry" response.status_int = 200 @@ -919,7 +919,7 @@ # in this case the spec is incorrect (correction need to be implemented # asap) - response.headers["Location"] = result.location + response.headers["Location"] = str(result.location) # explict cast to str response.status_int = 200 response.status = "200 OK" if config.return_deposit_receipt: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |