Currently the Accept header is not set by default, which is fine by itself. However, most of curlx expects the response to be in JSON format. I think it would be beneficial to set the Accept header to application/json by default and allow users to change or unset it.
Alternately, this could be a toggleable / configurable setting.
Currently the
Acceptheader is not set by default, which is fine by itself. However, most ofcurlxexpects the response to be in JSON format. I think it would be beneficial to set theAcceptheader toapplication/jsonby default and allow users to change or unset it.Alternately, this could be a toggleable / configurable setting.