Moya: Content type for requestJSONEncodable

Created on 25 Oct 2017  路  2Comments  路  Source: Moya/Moya

When using requestJSONEncodable task there is no "Content-Type": "application/json" header in result request. Is it intended behavior? Now it is necessary to add this header manually via headers method on TargetType.

Version of Moya: 10.0.0

question

Most helpful comment

Pull Request is here #1410.

All 2 comments

Oh. It seems like a bug. Thank you very much @Vict0rS for reporting it. Would you be up for fixing it by making a Pull Request? We would have to add it manually somewhere around here, similar as Alamofire does it.

I can help to guide you through, but if you don't have time or just can't do it, I can take it from here.

Pull Request is here #1410.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GurpalRajput picture GurpalRajput  路  3Comments

fenixsolorzano picture fenixsolorzano  路  3Comments

ghost picture ghost  路  3Comments

fenixsolorzano picture fenixsolorzano  路  3Comments

mwawrusch picture mwawrusch  路  3Comments