Open SealviewTW opened 3 years ago
For a particular test, I need to send a request without the User-Agent being present at all (not even the default one added by the HttpClient).
I have tried to remove it manually (even though I did not added prior) from the FilterableRequestSpecification, but with no success.
Even though the rest-assured request object does NOT have that header, it will be eventually added by the apache classes that are used beneath.
This is what I tried, but with no success:
FilterableRequestSpecification.removeHeader("User-Agent");
I am also getting the same issue, any update on it?
For a particular test, I need to send a request without the User-Agent being present at all (not even the default one added by the HttpClient).
I have tried to remove it manually (even though I did not added prior) from the FilterableRequestSpecification, but with no success.
Even though the rest-assured request object does NOT have that header, it will be eventually added by the apache classes that are used beneath.
This is what I tried, but with no success:
FilterableRequestSpecification.removeHeader("User-Agent");