tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53814] Could not display PDF file on Tomcat 7.0.27 above.
Date Wed, 05 Sep 2012 16:59:42 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53814

--- Comment #4 from Konstantin Prei├čer <preissa@web.de> ---
Hi Konstantin,

(In reply to comment #3)
> See o.a.tomcat.util.http.parser.AstMediaType#toString(), #toStringNoCharset()
> s/sb.append(';');/sb.append("; ");/

Thank you.
You are right: When I apply this change to the Tomcat 7.0.30 sources, then
Adobe Reader loads the PDF in IE without any error.

So it seems that indeed the client (I guess IE if Adobe Reader uses its API to
do HTTP requests, since IE's User-Agent is submitted and the problem does not
occur on Firefox or Chrome) is expecting a whitespace after the ";".

Although it is not really a Tomcat bug since the absent whitespace is
spec-compliant as you said, I also think a whitespace should be added to not
exclude non-spec-compliant clients.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message