WSO2 api manager not propagating content type header for multipart form data

走远了吗. 提交于 2019-12-02 05:15:31

问题


I'm using WSO2 api manager 1.10.0. I have a problem when using multipart/form-data , in fact i noticed that content type header isn't propagated to my back end service and so I'm getting unsupported media type 415 HTTP error. Please any idea how to fix this?


回答1:


Add the following property to repository/conf/passthru-http.properties file. http.headers.preserve=Content-Type

This will preserve the content type header you send with the request and send it to the backend. If you want to preserve more such headers, you can add them to the same line with comma separated.



来源:https://stackoverflow.com/questions/38405578/wso2-api-manager-not-propagating-content-type-header-for-multipart-form-data

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!