This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: getting the JDK built-in web server to set the correct mime type


On 08/15/2013 12:55 AM, Alex Mitchell wrote:
I see that you've committed this change to SVN. Unfortunately I think
there's a minor error, as I'm still getting invalid mime type when
browsing files using IE.

I believe lines 426-428 in Path.java should be

         if (contentType == null) {
             contentType = URLConnection.guessContentTypeFromName(getPath());
         }

rather than

         if (contentType != null) {
             contentType = URLConnection.guessContentTypeFromName(getPath());
         }

After making this change, the mime type seems to be detected correctly.

Oops - indeed.  I checked in this fix. Thanks,
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]