pdf/Firefox and turning off GZipMiddleware

2008-01-25 Thread [EMAIL PROTECTED]
I've been tearing my hair out for a little while trying to figure out why I can't display pdfs from Django in Firefox. I'm getting blank windows and I know it used to work ;-) I'm using the code from the documentation (http:// www.djangoproject.com/documentation/outputting_pdf/), removing "attac

Re: pdf/Firefox and turning off GZipMiddleware

2008-01-25 Thread Ned Batchelder
We just ran into this problem also. It's reported in ticket 6027: http://code.djangoproject.com/ticket/6027 GzipMiddleware and responses with files for content (rather than strings) don't get along... --Ned. [EMAIL PROTECTED] wrote: > I've been tearing my hair out for a little while trying t

Re: pdf/Firefox and turning off GZipMiddleware

2008-01-26 Thread [EMAIL PROTECTED]
Interesting, although I'm seeing behavior that's inconsistent with the bugreport... With GZipMiddleware turned on, the pdf displays in an external viewer from both IE7 and FF2 (when I don't set the Content- Disposition); and it also displays in-browser in IE7. The only place it doesn't display is