fix: JWT-валидация через lk-api-gateway PROD + User-Agent в PingNubesAPI
This commit is contained in:
@@ -84,6 +84,7 @@ func PingNubesAPI(ctx context.Context, endpoint, token string) error {
|
||||
return fmt.Errorf("build nubes ping request: %w", err)
|
||||
}
|
||||
req.Header.Set("Authorization", "Bearer "+token)
|
||||
req.Header.Set("User-Agent", "Mozilla/5.0")
|
||||
|
||||
client := &http.Client{Timeout: 10 * time.Second}
|
||||
resp, err := client.Do(req)
|
||||
|
||||
Reference in New Issue
Block a user