diff --git a/src/main.ts b/src/main.ts index e321f0b..bd9a7d3 100644 --- a/src/main.ts +++ b/src/main.ts @@ -148,7 +148,7 @@ const CurlGenerator = function ( options?: CurlAdditionalOptions ): string { let curlSnippet = "curl "; - curlSnippet += params.url; + curlSnippet += "'" + params.url + "'"; curlSnippet += getCurlMethod(params.method); curlSnippet += getCurlHeaders(params.headers); curlSnippet += getCurlBody(params.body);