Skip to content

Commit c3b96bd

Browse files
authored
include User-Agent header in requests to Posit Cloud (#6592)
1 parent f410d38 commit c3b96bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/publish/posit-cloud/api/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
} from "./types.ts";
1616

1717
import { md5Hash } from "../../../core/hash.ts";
18+
import { quartoConfig } from "../../../core/quarto.ts";
1819

1920
import { crypto } from "https://deno.land/[email protected]/crypto/mod.ts";
2021

@@ -139,6 +140,7 @@ export class PositCloudClient {
139140

140141
const headers = {
141142
Accept: "application/json",
143+
"User-Agent": `quarto-cli/${quartoConfig.version()}`,
142144
...authHeaders,
143145
...contentTypeHeader,
144146
};

0 commit comments

Comments
 (0)