Hello All,
Today I needed to change the 'Content_Type' response header for files in the
public folder. And I had a hard time finding the "right" place to do it.

I ended up doing it by adding calls to mimetypes.add_type immediately before
static_app = StaticURLParser() in middleware.py, which worked, but in my
googling for how to do it I found a line in the changelog for 0.9.7 (h
ttp://pylonshq.com/articles/archives/2009/2/pylons_097_released), which
read  "Added mimetype function and MIMETypes class for registering
mimetypes." Which suggests that there _is_ an official/right way to do it,
but I couldn't figure out how.

So basically I just wanted to check and see if there was a better (read:
more standard) way to do it than what I did?

Thanks,
Ryan

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to