fix: tiny issues with importers

This commit is contained in:
Andrew Bastin
2022-01-14 21:12:29 +05:30
parent 588d1119b5
commit 1719bb7bc9
3 changed files with 4 additions and 4 deletions

View File

@@ -180,7 +180,7 @@ const getHoppReqParams = (req: InsomniaRequestResource): HoppRESTParam[] =>
const getHoppRequest = (req: InsomniaRequestResource): HoppRESTRequest =>
makeRESTRequest({
name: req.name ?? "Untitled Request",
method: req.method ?? "GET",
method: req.method?.toUpperCase() ?? "GET",
endpoint: replaceVarTemplating(req.url ?? ""),
auth: getHoppReqAuth(req),
body: getHoppReqBody(req),