Skip to content

Commit dbf6664

Browse files
committed
3.0.10
1 parent 2c6418c commit dbf6664

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "3.0.9a",
2+
"version": "3.0.10",
33
"name": "@sctg/httpsnippet",
44
"description": "HTTP Request snippet generator for *most* languages",
55
"author": "Kong <[email protected]>",

src/httpsnippet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export class HTTPSnippet {
113113
},
114114
};
115115

116-
if (req.url) {
116+
if (typeof(req.url) !== 'undefined' && req.url !== null && req.url !== '') {
117117
// normalize the URL if it contains { or }
118118
if (req.url.includes('{') || req.url.includes('}')) {
119119
req.url = new URL(req.url).toString();

0 commit comments

Comments
 (0)