Commit eb5d0ae
committed
Use standard User-Agent header instead of X-UC-User-Agent
X-UC-User-Agent is a CORS-allowed custom header designed for the
JavaScript upload widget running in browsers, where overriding the
browser's built-in User-Agent is restricted. Server-side SDKs have
no such restriction. All other Uploadcare server-side SDKs (Python,
PHP, Ruby, Java) use the standard User-Agent header. The Go SDK
adopted X-UC-User-Agent in 2019 without clear justification.1 parent 9e5e84b commit eb5d0ae
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments