<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Boris,</span></div><div>Thanks, nice catch.</div><div>No filename in the response was indeed the difference.</div><div><br></div><div>Bob</div><div><br></div> <div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> "Boris Popov, DeepCove Labs" <boris@deepcovelabs.com><br> <b><span style="font-weight: bold;">To:</span></b> Seaside - general discussion <seaside@lists.squeakfoundation.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, December 19, 2011 2:46:53 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> RE: [Seaside] Re: View PDF in browser<br> </font> <br>I just tested the below
locally in Chrome and Firefox,<br><br>"Chrome downloads the file; Firefox prompts to download the file"<br>self requestContext respond: <br> [:response |<br> response document: ((WAMimeDocument on: bytes mimeType:<br>'application/pdf')<br> <br>fileName: filename;<br> <br>yourself)]<br><br>"Chrome opens the document in the browser; Firefox opens the document in<br>the browser"<br>self requestContext respond: <br> [:response |<br> response document: (WAMimeDocument on: bytes mimeType:<br>'application/pdf')]<br><br>-Boris<br><br>-----Original Message-----<br>From: <a ymailto="mailto:seaside-bounces@lists.squeakfoundation.org" href="mailto:seaside-bounces@lists.squeakfoundation.org">seaside-bounces@lists.squeakfoundation.org</a><br>[mailto:<a
ymailto="mailto:seaside-bounces@lists.squeakfoundation.org" href="mailto:seaside-bounces@lists.squeakfoundation.org">seaside-bounces@lists.squeakfoundation.org</a>] On Behalf Of Yanni<br>Chiu<br>Sent: Monday, December 19, 2011 2:36 PM<br>To: <a ymailto="mailto:seaside@lists.squeakfoundation.org" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>Subject: [Seaside] Re: View PDF in browser<br><br> <bobn <at> rogers.com> writes:<br>> <br>> Neither made a difference.<br>> <br>> Is there something else you're suggesting?<br><br>Nothing other than what you tried.<br><br>At this point, I'd look at the actual bytes being sent in the two cases.<br>I still think there's a difference in the http headers. I usually use<br>"telnet"<br>to the http port, and respond with "GET <your-URL-here> HTTP/1.1".<br><br><br>_______________________________________________<br>seaside mailing list<br><a
ymailto="mailto:seaside@lists.squeakfoundation.org" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>_______________________________________________<br>seaside mailing list<br><a ymailto="mailto:seaside@lists.squeakfoundation.org" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br><br><br> </div> </div> </div></body></html>