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 65081dc commit 26e9361Copy full SHA for 26e9361
jb-postman.groovy
@@ -29,7 +29,14 @@ iff.eachLine {
29
req.put("method", l[0..3])
30
def rawUrl = l.split(" ")[1]
31
url.put("raw", rawUrl)
32
- url.put("host",rawUrl.split("/")?[0]?.split("\\."))
+ if (rawUrl.contains("://")) {
33
+ def extUrl = rawUrl.split("://")
34
+ url.put("protocol", extUrl[0])
35
+ url.put("host", extUrl[1].split("/")?[0]?.split("\\."))
36
+ } else {
37
+ url.put("host",rawUrl.split("/")?[0]?.split("\\."))
38
+
39
+ }
40
// assumption - there should be no url encoding going here since jb does it for you
41
if (!rawUrl.contains("?")) break
42
rawUrl.split("\\?")?[1].split("&")?.each {
0 commit comments