[Simpleweb-Support] FileIndexer.getContentType() missing properties file
Brought to you by:
niallg
From: jlh <jl...@gm...> - 2011-07-10 14:07:14
|
Hello list! I only just started to find my way around this amazing framework and I'm also quite a beginner to Java in general. Right now I'm stuck trying to serve the correct Content-Type header, because FileIndexer.getContentType() always returns the default "application/octetstream". Apparently, getContentType() is supposed to find the content type by looking up the file extension in the file FileIndexer.properties (which is good enough for my purpose). That file ships with the source tree, but unless I'm mistaken, it isn't included in the JAR file, at least "unzip -l simple-4.1.21.jar" makes me think so. Is this a bug, or am I supposed to put a copy of this file somewhere? Thanks in advance for any hints. If possible, Cc: me. jlh |