@ok2c, thanks for the hc5-async-json lib! I'm in an unfortunate situation where servers I had to use erroneously set response header Content-Type: text/html even thought their response is perfect JSON. In hc5-async-json code there are controls for correct Content-Type header and thus I cannot use it as it is.
Do I have other options than clone the httpcomponents-jackson and modify the code? Would be great if Content-Type header control is made configurable (on/off).
@mattirn I do not see a problem with making it configurable, however a better solution might be rewriting the response Content-Type header with a response interceptor.
@ok2c, thanks for the
hc5-async-json
lib! I'm in an unfortunate situation where servers I had to use erroneously set response headerContent-Type: text/html
even thought their response is perfect JSON. Inhc5-async-json
code there are controls for correctContent-Type
header and thus I cannot use it as it is. Do I have other options than clone thehttpcomponents-jackson
and modify the code? Would be great ifContent-Type
header control is made configurable (on/off).