Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

method isXmlContentType not support content-type 'text/xml' #5

Open
thrblock opened this issue Jul 8, 2019 · 1 comment
Open

method isXmlContentType not support content-type 'text/xml' #5

thrblock opened this issue Jul 8, 2019 · 1 comment

Comments

@thrblock
Copy link

thrblock commented Jul 8, 2019

my version:0.9.4 (but as i see,0.9.6 still have same issue)

The method 'isXmlContentType' in org.jets3t.service.impl.rest.httpclient.RestStorageService used by listAllBucketsImpl,is only support 'application/xml'

while my s3service give back a 'text/xml' as content-type in response header;(and there still a legal response body)

this cause a S3ServiceException;

@mondain
Copy link
Owner

mondain commented Aug 26, 2019

application/xml is preferred over text/xml due to implementations normally treating text/xml as ascii or text/plain; it may be best to use the preferred mime type instead of text/xml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants