waha icon indicating copy to clipboard operation
waha copied to clipboard

[GOWS] - Link preview request sends User-Agent and Accept values swapped

Open NCandra opened this issue 1 month ago • 1 comments

Describe the bug

When GOWS generates a link preview, the HTTP request it makes to the target URL has the User-Agent and Accept header values swapped

Version

{
  "version": "2026.8.2",
  "engine": "GOWS",
  "tier": "PLUS"
}

Steps

To Reproduce Steps to reproduce the behavior:

  1. Send any link message with sendText endpoint:
  2. View the link from whatsapp application

Expected behavior

The link preview should be able to read all browser information from most server

Requests - Responses

Some link preview return with 403 - Forbidden

Additional context

There is a mismatch value located in this file: https://github.com/devlikeapro/gows-plus/blob/master/src/media/links.go Line 44-45

Expected User-Agent: Mozila .... Accept: text/html ....

NCandra avatar Oct 20 '26 09:10 NCandra

2026.10.1 - GOWS - swap link preview headers - #2322

patron:PRO

devlikepro avatar Oct 28 '26 09:10 devlikepro