This repository has been archived by the owner on Sep 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
User-agent generated with extra spaces #1357
Labels
Comments
Hey! I had this problem yesterday when I made my own Whatsapp Web Webapp (you can download it here btw https://github.com/SrIzan10/whatsapp-web/releases/tag/v1.0.0 for windows). I fixed it using my own user agent. You can try this one: |
hey. I did something similar. But I decided to just use the generated user agent with the extra spaces removed as that would accurately reflect the exact chrome version and OS I was using. So, in my case, I used:
|
ronjouch
pushed a commit
that referenced
this issue
Mar 21, 2022
Adam777Z
pushed a commit
to Adam777Z/nativefier
that referenced
this issue
Nov 9, 2022
…ier#1367) Fixes nativefier#1357 , by not adding a new space when removing the app name from the User-Agent. Co-authored-by: noxafy <hci@gmx.de>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Homework
nativefier --help
and https://github.com/nativefier/nativefier/blob/master/API.mdBug description
Auto-generated user agent contains additional spaces. I retrieved the user agent by looking at the requests in Network tab of Developer Tools.
Because of this, WhatsApp is giving me the same issue as mentioned in #1112.
Removing the extra space and setting the user-agent explicitly while building the WhatsApp app no longer causes the issue.
Steps to reproduce
Give your full nativefier command and its logs, with the
--verbose
flag, on a public site:Expected behavior
User-agent should not have extra spaces.
Actual behavior
Generated user-agent had extra spaces.
Debug info
User Agent:
As you can see there are two spaces before the text "Chrome".
The user agent was retrieved by looking at request headers in Developer tools.
Context
The text was updated successfully, but these errors were encountered: