Hello Eki,

Sorry - should have seen this before.

The mime type that you are setting is for your rails app.
The jad/jar files are being served from the http server.

So you need to configure the http server for the mime type.

I don't know how to modify the http server mime-types - couldn't find it at 
http://docs.heroku.com/

The options that you are more in control:
1) serve up the file from s3
2) serve up the file via Rack/Metal/Rails
  set the cache to use varnish
  set the mime-type
  http://docs.heroku.com/http-caching

Serving the file from apache (the public directory) would be the preferred 
route, but if you are up against a deadline, maybe the 2 options above may help

Good luck,
Keenan
On Jun 24, 2010, at 4:44 AM, Eki wrote:

> Hey Keenan ,
> I would like to thank you for your swift response and your welling to
> help ,
> anyways I can't use the FF since I'm using this for mobile application
> u know , and anyways its not working even for FF .
> 
> I did what you told me , check out the outputs below
> 
> telnet http://falling-autumn-84.heroku.com 80
> Trying 75.101.163.44...
> Connected to heroku.com.
> Escape character is '^]'.
> HEAD RamadanApp_100.jad HTTP/1.1
> Host http://falling-autumn-84.heroku.com
> HTTP/1.1 400 Bad Request
> Cache-Control: no-cache
> Pragma: no-cache
> Content-Type: text/html; charset=utf-8
> Connection: Keep-Alive
> Content-Length: 691
> 
> I'm not sure if I did that right way , anyways check it out yourself ,
> try to install the following jar file 
> http://falling-autumn-84.heroku.com/RamadanApp_100.jad
> and check out the result .
> 
> Thanks in advance
> Eki
> On Jun 24, 4:46 am, Keenan Brock <kee...@thebrocks.net> wrote:
>> Hey Eki,
>> 
>> hostname = the name of your app
>> filename = the name of the jar file
>> 
>> telnet hostname 80
>> HEAD filename HTTP/1.1
>> Host: hostname
>> 
>> (2 returns)
>> 
>> What does it say is the Content-Type?
>> 
>> There is probably an easier way to just use firefox ...
>> 
>> --Keenan
>> 
>> On Jun 23, 2010, at 6:53 AM, Eki wrote:
>> 
>> 
>> 
>>> Hi there ,
>>> Is there anyway to setup mime-type of jar file , I need my mobile app
>>> to download some jar file in public folder , I adding some code for
>>> mime_type.rb file something like this :
>> 
>>> Mime::Type.register "text/vnd.sun.j2me.app-descriptor", :jad
>>> Mime::Type.register "application/java-archive", :jar
>> 
>>> but still not working . whenever I read the jad file it read it as
>>> text instead of downloading it .
>> 
>>> Any help will be highly appreciated .
>> 
>>> Cheers
>> 
>>> --
>>> You received this message because you are subscribed to the Google Groups 
>>> "Heroku" group.
>>> To post to this group, send email to her...@googlegroups.com.
>>> To unsubscribe from this group, send email to 
>>> heroku+unsubscr...@googlegroups.com.
>>> For more options, visit this group 
>>> athttp://groups.google.com/group/heroku?hl=en.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Heroku" group.
> To post to this group, send email to her...@googlegroups.com.
> To unsubscribe from this group, send email to 
> heroku+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/heroku?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to