Skip to content
This repository was archived by the owner on Feb 2, 2022. It is now read-only.

Commit 76365e3

Browse files
authored
Fix parsing when host is localhost:<port> (#181)
1 parent 27c7bad commit 76365e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Agent/RESTler2Postman/Program.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ let parseRequest (x: string) =
7878
//from r.[1] to end, but if "" line and not last one -> then next one is body
7979
let rec collectHeaders (headers: Map<string, string>) (rs: string list) =
8080
let parseHeader (h: string) =
81-
match h.Split(':') with
81+
match h.Split(": ") with
8282
| [|k; v|] -> Some(k.Trim(), v.Trim())
8383
| _ -> None
8484

0 commit comments

Comments
 (0)