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
I’m trying to write a test at the moment to perform a multipart POST operation. However, the request is generating some headers that I didn’t add, and that I don’t want (resulting in the request getting filtered by our WAF). The headers in question are:
I’ve tried casting the Request to a FilterableRequest and removing the headers, but they don’t get removed. I suspect they’re getting added by the Apache HttpClient ? Is there any way to remove such headers using REST Assured ? Below is what I have so far
I’m trying to write a test at the moment to perform a multipart POST operation. However, the request is generating some headers that I didn’t add, and that I don’t want (resulting in the request getting filtered by our WAF). The headers in question are:
Transfer-Encoding
Accept-Encoding
Content-Transfer-Encoding
I’ve tried casting the Request to a FilterableRequest and removing the headers, but they don’t get removed. I suspect they’re getting added by the Apache HttpClient ? Is there any way to remove such headers using REST Assured ? Below is what I have so far
And this is the request that gets generated
I know there’s a PR up to remove the deprecated Content-Transfer-Encoding header, but even still I would need to remove the other two. Does anybody have any idea what I’m doing wrong ? Any help would be really greatly appreciated.
Thanks in advance
The text was updated successfully, but these errors were encountered: