I'm getting an invalid content type error consistently on certain tiles from a custom map source. (cyberjapandata.gsi.go.jp)
When downloaded from a web browser the tiles download correctly (and and can be opened in any picture viewer), however don't open in the browser which makes sense if the content type is wrong...
Looking at the log I see the following:
Code: Select all
2016-10-22 01:10:58,070 TRACE [Map preview thread 10] TileDownLoader: Retrieved 4423 bytes for a HTTP 200
2016-10-22 01:10:58,072 DEBUG [Map preview thread 10] TileLoader: Downloading of tile 16/58459/24107@Japan GSI failed
mobac.exceptions.UnrecoverableDownloadException: Content type of the loaded image is unknown: application/octet-stream
https://cyberjapandata.gsi.go.jp/xyz/std/16/58460/24107.png is Good
https://cyberjapandata.gsi.go.jp/xyz/std/16/58457/24107.png Downloads in MOBAC but fails the content type check.
I don't have access to the cyberjapandata server (maybe obviously) and my Japanese is not the best so I don't think I can change anything on the server side...
I was thinking the obvious solution would be to comment out the call to checkContentType but was wondering what side effects this would have?
Obviously its less checking which is not ideal, just wondering if there were reasons behind this check that I'm not aware of...
Anyway thanks for the great program and great work making it cross platform:)