zbkoong / servdroidweb

Automatically exported from code.google.com/p/servdroidweb
1 stars 0 forks source link

Bad support of SVG file #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The content type of svg files is wrong (application/octet-stream instead of 
image/svg+xml) and these files can't be display on client side (browsers). Here 
a copy of the same request on servdroidweb and apache.

ServDroidweb :

Request URL:http://192.168.1.27:8080/WU/clsol/resources/images/first.svg
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:image/webp,*/*;q=0.8
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8,fr;q=0.6
Cache-Control:no-cache
Connection:keep-alive
Host:192.168.1.27:8080
Pragma:no-cache
Referer:http://192.168.1.27:8080/WU/
User-Agent:Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/29.0.1547.76 Safari/537.36
Response Headersview source
Content-Length:10945
Content-type:application/octet-stream
Date:Mon, 23 Sep 2013 23:05:53 CEST
Expires:Tue, 24 Sep 2013 00:05:53 CEST
Last-Modified:Sat, 21 Sep 2013 22:47:04 CEST
Server:ServDroid server

Apache

Request URL:http://jc-vaio:8085/WU/clsol/resources/images/first.svg
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:image/webp,*/*;q=0.8
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8,fr;q=0.6
Cache-Control:no-cache
Connection:keep-alive
Host:jc-vaio:8085
Pragma:no-cache
Referer:http://jc-vaio:8085/WU/
User-Agent:Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/29.0.1547.76 Safari/537.36
Response Headersview source
Accept-Ranges:bytes
Content-Length:10945
Content-Type:image/svg+xml
Date:Mon, 23 Sep 2013 21:11:18 GMT
ETag:W/"10945-1379497136000"
Last-Modified:Wed, 18 Sep 2013 09:38:56 GMT
Server:Apache-Coyote/1.1

Besides that servdroidWeb is perfect for me. Congratulation

Original issue reported on code.google.com by jcar...@gmail.com on 23 Sep 2013 at 9:24

Attachments:

GoogleCodeExporter commented 9 years ago
Hi jcarbou.

As the project is now hosted in github I moved the ticket there. Here the link:

https://github.com/joanpuigsanz/servdroid/issues/9

Thanks for the report!

Original comment by joanpuig...@gmail.com on 24 Sep 2013 at 6:06

GoogleCodeExporter commented 9 years ago
Fixed. Here is the code change
https://github.com/joanpuigsanz/servdroid/issues/9

Original comment by joanpuig...@gmail.com on 1 Oct 2013 at 10:30

GoogleCodeExporter commented 9 years ago

Original comment by joanpuig...@gmail.com on 1 Oct 2013 at 10:30