SyneticNL / Hyral

Hypermedia oriented Resource API Layer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

responseType for httpconnector is forced on json. Unable to overwrite with instance responseType

barthje opened this issue · comments

Even when doing const connector = HttpConnector(axios.create({ headers: { Accept: 'text/xml', }, responseType: 'text', baseURL: url })
It forces the responseType to json in HttpConnector

Created a fix for this so the responseType can be defined by the responseNormalizer. It will default to json if none is set.

Solved in 1.3.0