We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d417a55 commit 92b446eCopy full SHA for 92b446e
jb-postman.groovy
@@ -26,7 +26,7 @@ iff.eachLine {
26
case l.startsWith("# "): break
27
case {l ==~ "(GET|PUT|POST|DELETE|OPTIONS).+"}:
28
item.put("name", "request-${++count}")
29
- req.put("method", l[0..3])
+ req.put("method", l.split(" ")[0].trim())
30
def rawUrl = l.split(" ")[1]
31
url.put("raw", rawUrl)
32
if (rawUrl.contains("://")) {
0 commit comments