Skip to content

Commit

Permalink
chore: update comment (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored Oct 13, 2023
1 parent b088998 commit a06c685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ export const isHeadersProtocol = (headers: any): headers is HeadersProtocol => {
export const getRequiredHeader = (headers: HeadersLike, header: string): string => {
const lowerCasedHeader = header.toLowerCase();
if (isHeadersProtocol(headers)) {
// to deal with the case where the header looks like Finch-Event-Id
// to deal with the case where the header looks like Stainless-Event-Id
const intercapsHeader =
header[0]?.toUpperCase() +
header.substring(1).replace(/([^\w])(\w)/g, (_m, g1, g2) => g1 + g2.toUpperCase());
Expand Down

0 comments on commit a06c685

Please sign in to comment.