mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-28 04:29:42 +00:00
core: Add User-Agent header to identify client version in HTTP requests
This commit is contained in:
parent
2893588016
commit
fc6d4b4010
1 changed files with 1 additions and 0 deletions
|
|
@ -373,6 +373,7 @@ const live: Layer.Layer<
|
|||
"x-opencode-session": input.sessionID,
|
||||
"x-opencode-request": input.user.id,
|
||||
"x-opencode-client": Flag.OPENCODE_CLIENT,
|
||||
"User-Agent": `opencode/${InstallationVersion}`,
|
||||
}
|
||||
: {
|
||||
"x-session-affinity": input.sessionID,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue