You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
unsanitizedArgs.H can be either undefined (if no -H arg used), a string (if only one -H arg is used) or an array (if more than one -H arg is used). This is the reason for the complexity of the condition.
Currently the
Accept
header is not set by default, which is fine by itself. However, most ofcurlx
expects the response to be in JSON format. I think it would be beneficial to set theAccept
header toapplication/json
by default and allow users to change or unset it.Alternately, this could be a toggleable / configurable setting.
The text was updated successfully, but these errors were encountered: