comparison src/server/server.py @ 873:0cf250066b8a

server: replaced libervia_test.html redirection by an absolute URL
author Goffi <goffi@goffi.org>
date Mon, 29 Feb 2016 12:40:17 +0100
parents 54f6c5b86a87
children d9b98b8a1847
comparison
equal deleted inserted replaced
872:fa29524774d6 873:0cf250066b8a
1487 1487
1488 # special 1488 # special
1489 putChild('radiocol', ProtectedFile(_upload_radiocol.getTmpDir(), defaultType="audio/ogg")) # FIXME: We cheat for PoC because we know we are on the same host, so we use directly upload dir 1489 putChild('radiocol', ProtectedFile(_upload_radiocol.getTmpDir(), defaultType="audio/ogg")) # FIXME: We cheat for PoC because we know we are on the same host, so we use directly upload dir
1490 # pyjamas tests, redirected only for dev versions 1490 # pyjamas tests, redirected only for dev versions
1491 if self.version[-1] == 'D': 1491 if self.version[-1] == 'D':
1492 putChild('test', web_util.Redirect('libervia_test.html')) 1492 putChild('test', web_util.Redirect('/libervia_test.html'))
1493 1493
1494 1494
1495 wrapped = web_resource.EncodingResourceWrapper(root, [server.GzipEncoderFactory()]) 1495 wrapped = web_resource.EncodingResourceWrapper(root, [server.GzipEncoderFactory()])
1496 self.site = server.Site(wrapped) 1496 self.site = server.Site(wrapped)
1497 self.site.sessionFactory = LiberviaSession 1497 self.site.sessionFactory = LiberviaSession