Apply taiga POST patch
This commit is contained in:
parent
56d363bbd5
commit
63bc9efa64
1 changed files with 6 additions and 1 deletions
|
@ -212,7 +212,12 @@ class AuthenticateRequest(ProviderPageBase):
|
||||||
def _respond(self, response):
|
def _respond(self, response):
|
||||||
try:
|
try:
|
||||||
self.debug('Response: %s' % response)
|
self.debug('Response: %s' % response)
|
||||||
webresponse = self.cfg.server.encodeResponse(response)
|
do_post_trusts = ['http://taigastg.cloud.fedoraproject.org/', 'http://taiga.cloud.fedoraproject.org/']
|
||||||
|
if response.request.trust_root in do_post_trusts:
|
||||||
|
webresponse = self.cfg.server.encoder.responseFactory(code=200,
|
||||||
|
body=response.toHTML())
|
||||||
|
else:
|
||||||
|
webresponse = self.cfg.server.encodeResponse(response)
|
||||||
cherrypy.response.headers.update(webresponse.headers)
|
cherrypy.response.headers.update(webresponse.headers)
|
||||||
cherrypy.response.status = webresponse.code
|
cherrypy.response.status = webresponse.code
|
||||||
return webresponse.body
|
return webresponse.body
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue