PriyaranjanMohapatra / rest-client

Automatically exported from code.google.com/p/rest-client
Apache License 2.0
0 stars 0 forks source link

When loading Body from a file, set the content-type automatically based on file extension #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This would be really handy!

Original issue reported on code.google.com by aviflax on 18 Feb 2008 at 7:45

GoogleCodeExporter commented 8 years ago
http://www.rgagnon.com/javadetails/java-0487.html

Should be fixable in 2.1 release.

Original comment by subwiz on 19 Feb 2008 at 9:09

GoogleCodeExporter commented 8 years ago
JMIMEMagick is available in maven repo:

<dependency>
    <groupId>jmimemagic</groupId>
    <artifactId>jmimemagic</artifactId>
    <version>0.1.2</version>
</dependency>

It is covered by LGPL. Can be used by our project.

Original comment by subwiz on 19 Feb 2008 at 9:17

GoogleCodeExporter commented 8 years ago
Used the URLConnection.getContentType() for determining content type. Revision 
117
has this fix.

Original comment by subwiz on 19 Feb 2008 at 2:25