-
Notifications
You must be signed in to change notification settings - Fork 169
Open
Labels
Description
When opening https://apps.nextcloud.com/api/v1/platforms.json in the browser, I do get the current v33.0.0 release as being marked as hasRelease: true. However, the same call using cURL results in hasRelease: false for the same version.
I boiled it down to the 'accepted-language' header (didn't try to many combinations, though).
Steps to reproduce
- Open https://apps.nextcloud.com/api/v1/platforms.json in Browser -> Correct
- Call
curl https://apps.nextcloud.com/api/v1/platforms.json-> Wrong - Call
curl https://apps.nextcloud.com/api/v1/platforms.json -H 'accept-language: en'-> Correct (other languages as de seem also to work)
Expected behaviour
The list should be consistent, independent of the accepted language.
Actual behaviour
➜ curl 'https://apps.nextcloud.com/api/v1/platforms.json' -H 'accept-language: en' | jq '.[] | select(.version == "33.0.0")'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 17988 100 17988 0 0 97.79k 0 0
{
"hasRelease": true,
"version": "33.0.0",
"isSupported": true
}
➜ curl 'https://apps.nextcloud.com/api/v1/platforms.json' | jq '.[] | select(.version == "33.0.0")'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 17990 100 17990 0 0 144.8k 0 0
{
"hasRelease": false,
"version": "33.0.0",
"isSupported": false
}Browser
Browser name: Chromium
Browser version: 146
Operating system: Linux (Aurora)
Reactions are currently unavailable