educloudalliance / xroad-rest-gateway

Unmaintained repository. Development moved to
https://github.com/vrk-kpa/REST-adapter-service
European Union Public License 1.1
20 stars 11 forks source link

ProviderGateway should accept application/xml content type as REST service response #17

Closed tsallinen closed 9 years ago

tsallinen commented 9 years ago

Currently Provider accepts only text/xml and application/json content-type:

https://github.com/educloudalliance/xroad-rest-gateway/blob/master/src/src/main/java/com/pkrete/xrd4j/tools/rest_gateway/ProviderGateway.java#L127

As application/xml is fairly common, perhaps it should be supported as an alternative form to text/xml.

petkivim commented 9 years ago

You're right, application/xml should be supported. Now it's added.