mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-17 12:42:17 +00:00
sync
This commit is contained in:
parent
626a488fb8
commit
474e311f6f
1 changed files with 1 additions and 0 deletions
|
|
@ -165,6 +165,7 @@ export async function handler(
|
|||
if (typeof v === "string") {
|
||||
if (v === "$ip") return [[k, ip]]
|
||||
if (v === "$workspace") return authInfo?.workspaceID ? [[k, authInfo?.workspaceID]] : []
|
||||
if (v === "$session") return sessionId ? [[k, sessionId]] : []
|
||||
if (v.startsWith("$header.")) {
|
||||
const headerValue = input.request.headers.get(v.slice(8))
|
||||
return headerValue ? [[k, headerValue]] : []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue