httpx icon indicating copy to clipboard operation
httpx copied to clipboard

The random agent selection do not work as expected

Open andrei-the-developer opened this issue 2 years ago • 0 comments

httpx version: 1.2.9

Current Behavior: Any request from httpx is made using the following agent ""Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36 OPR/86.0.4363.59""

Expected Behavior: Only one of those agent should have been chosen, randomly

Steps To Reproduce:

  1. run in terminal httpx -u 127.0.0.1
  2. tail /var/log/apache2/access.log
  3. The last row if the file should be the httpx request, and in the agent field you see all of the browsers instead of only one

andrei-the-developer avatar Apr 15 '23 10:04 andrei-the-developer