Skip to content

Commit

Permalink
fix HTTP verb extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
isaric committed Feb 16, 2022
1 parent d417a55 commit 92b446e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jb-postman.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ iff.eachLine {
case l.startsWith("# "): break
case {l ==~ "(GET|PUT|POST|DELETE|OPTIONS).+"}:
item.put("name", "request-${++count}")
req.put("method", l[0..3])
req.put("method", l.split(" ")[0].trim())
def rawUrl = l.split(" ")[1]
url.put("raw", rawUrl)
if (rawUrl.contains("://")) {
Expand Down

0 comments on commit 92b446e

Please sign in to comment.