I want to serve images via file:/// scheme as all clients in an internal
network mount the same image filer.
A test:
A simple html file on disk correctly loads and renders an image via a
file:/// URI:
<img src="file:///tmp/test.png"></img>
..the equivalent html served from pyramid/wsgi does not:
from wsgiref.simple_server import make_server
from pyramid.config import Configurator
from pyramid.response import Response
def file_scheme(request):
return Response('<img src="file:///tmp/test.png"></img>')
if __name__ == '__main__':
config = Configurator()
config.add_route('home', '/')
config.add_view(file_scheme, route_name='home')
app = config.make_wsgi_app()
server = make_server('0.0.0.0', 8080, app)
server.serve_forever()
Same deal with waitress. What am I missing ?
Thank you
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.