-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
user-agent header Issue resolved in headless mode #868
user-agent header Issue resolved in headless mode #868
Conversation
Added Missed Flag of New Feature ( -e ) in README.md
Thanks for your contribution @michael2to3 , we really appreciate it. We also have a Discord server, which you’re more than welcome to join. It's a great place to connect with fellow contributors and stay updated with the latest developments! |
I believe the issue can be resolved by removing this function completely, which overrides the user-agent in a few places Line 67 in 9ba3bb8
@Mzack9999, have we encountered any practical issues that were solved by overriding the user agent with this one? |
Yeah that much better |
@dogancanbakir I believe the helper function was implemented in a few places to avoid using the go default user agent, which is filtered out in many cases |
Issue with Setting User-Agent Header in Headless Mode
I've encountered an issue where setting the
User-Agent
header in headless mode was not effective, despite specifying it through both-H "User-Agent: 123"
and the headless driver option--user-agent=123
. The header would not change as expected. Below are the before and after screenshots for clarity:Before:
This image demonstrates the simultaneous use of both methods, showing that the
User-Agent
header remained unchanged.After:
This image shows that after my modifications, setting the header using
-H "User-Agent: 123"
alone is now sufficient to change theUser-Agent
.Please review these changes. If there are any inaccuracies or if further adjustments are necessary, I'm open to feedback and willing to help enhance this functionality