Skip to content

Commit

Permalink
clients/web/docs: remove Content-Type header from curl command if no …
Browse files Browse the repository at this point in the history
…body
  • Loading branch information
frankie567 committed Jul 9, 2024
1 parent 61ac631 commit 7c3cdb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/apps/web/src/components/Documentation/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ export class CURLCommandBuilder extends CommandBuilder {
this.endpoint.security && this.endpoint.security.length > 0

const headers = [
`-H "Content-Type: ${mediaType}"`,
...(mediaType ? [`-H "Content-Type: ${mediaType}"`] : []),
'-H "Accept: application/json"',
...(hasSecurityScheme ? ['-H "Authorization: Bearer <token>"'] : []),
]
Expand Down

0 comments on commit 7c3cdb6

Please sign in to comment.