appengine-maven-repository
appengine-maven-repository copied to clipboard
content type not returned properly for xml files
The https://github.com/renaudcerrato/appengine-maven-repository/blob/master/src/main/java/repo/resource/RepositoryResource.java#L104 does not work properly for the *.xml files as the GCP does not set the content type for the XML and the *.xml files are returned as 'application/octet-stream' This causes issue with some tools that rely on the content type
Mmmm... It sounds like your application is not setting the Content-Type
header : the mime is taken from it. Can you check ?
https://github.com/renaudcerrato/appengine-maven-repository/blob/master/src/main/java/repo/resource/RepositoryResource.java#L135
might be, we are using https://leiningen.org
I'd suggest to report a bug to that tool, but we may also add some basic mime-type detection based on file extension. PR are still welcome ;)