Re: [Simpleweb-Support] FileIndexer.getContentType() missing properties file
Brought to you by:
niallg
From: Niall G. <gal...@ya...> - 2011-07-11 11:12:12
|
The properties file is in the jar archive, are you somehow repackaging the jar? If you extract the downloadable jar file you will see the properties file within the jar. It is named Content.properties. --- On Sun, 10/7/11, jlh <jl...@gm...> wrote: > From: jlh <jl...@gm...> > Subject: [Simpleweb-Support] FileIndexer.getContentType() missing properties file > To: sim...@li... > Received: Sunday, 10 July, 2011, 7:07 AM > 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 > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is > seriously valuable. > Why? It contains a definitive record of application > performance, security > threats, fraudulent activity, and more. Splunk takes this > data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |