1
0
mirror of synced 2025-12-23 11:54:18 -05:00

Add -l option to curl code samples on rest pages to follow redirects (#35140)

This commit is contained in:
Grace Park
2023-02-28 09:50:12 -08:00
committed by GitHub
parent 06865395b1
commit c5d08a7c19

View File

@@ -88,7 +88,7 @@ export function getShellExample(operation: Operation, codeSample: CodeSample) {
`${operation.serverUrl}${requestPath}`,
requestBodyParams,
].filter(Boolean)
return `curl \\\n ${args.join(' \\\n ')}`
return `curl -L \\\n ${args.join(' \\\n ')}`
}
/*