mirror of
https://github.com/Heretek-AI/opencode.git
synced 2026-11-23 17:09:27 -10:00
core: Add User-Agent header to identify client version in HTTP requests
This commit is contained in:
1 parent
2893588016
commit
fc6d4b4010
1 file changed
+1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user