Explicitly setting the header did it. Thank you everyone for the help. On Jan 14, 11:30 am, Branko Vukelic <[email protected]> wrote: > On Thu, Jan 14, 2010 at 5:45 PM, Herman <[email protected]> wrote: > > Here is my file: > > #!/usr/bin/env /usr/local/bin/python > > # -*- coding: utf-8 -*- > > > import web > > > urls = ("/(\w+.\w{3})", "hello") > > app = web.application(urls, globals()) > > > class hello: > > def GET(self, filename): > > return "Serving up filename " + filename > > > if __name__ == "__main__": > > app.run() > > > Compare the output of these two urls: > > >http://dev.hermanradtke.com:8881/imagedoesnotexist.abc > >http://dev.hermanradtke.com:8881/imagedoesnotexist.jpg > > > Does this not happen for anyone else? > > I render my test output using templetor which automatically sets the > Content-Type header. You can do the same manually using web.header() > method. In your code, before returning the output, you have to do > this: > > web.header('Content-Type', 'text/html', unique=True) > > Try that, and see how it works. > > -- > Branko Vukelić > > http://foxbunny.tumblr.com/http://www.flickr.com/photos/16889...@n04/http://www.twitter.com/foxbunny
-- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
