cancel
Showing results for 
Search instead for 
Did you mean: 

How to fix resourcedata Content-Type?

zloy
Champ in-the-making
Champ in-the-making
Hi,
I got a resource:


{"id"=>"vacation1.yml", "url"=>"http://our.stage.server/activiti-rest/service/repository/deployments/98370/resources/vacation1.yml", "contentUrl"=>"http://our.stage.server/activiti-rest/service/repository/deployments/98370/resourcedata/vacation1.ym...", "mediaType"=>nil, "type"=>"resource"}


It has <b>nil</b> mediaType attribute, and its content is pure haml.

When I try to get its content I receive a response with Content-Type set to 'application/json'. Why? And is there a way to influence it?
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
Hmmm, i don't think that's currently supported by the REST endpoint. I think the application/json is simply the default