v5.0.61: add browser Accept headers (DDoS-Guard)

This commit is contained in:
“Naeel”
2026-07-01 14:35:19 +04:00
parent 3308aebe76
commit 3c6e8c8b1d
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ terraform {
required_providers {
nubes = {
source = "terra.k8c.ru/nubes-test/nubes"
version = "5.0.60"
version = "5.0.61"
}
}
}
@@ -841,6 +841,8 @@ func (c *UniversalClient) doRequest(ctx context.Context, method, path string, pa
req.Close = true
req.Header.Set("Content-Type", "application/json")
req.Header.Set("User-Agent", userAgent)
req.Header.Set("Accept", "application/json, text/plain, */*")
req.Header.Set("Accept-Language", "en-US,en;q=0.9")
if c.ApiToken != "" {
req.Header.Set("Authorization", "Bearer "+c.ApiToken)
}
+1 -1
View File
@@ -10,7 +10,7 @@ import (
)
var (
version string = "5.0.60"
version string = "5.0.61"
)
func main() {