Skip to content

Commit

Permalink
Added test case for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
msoap committed Aug 27, 2018
1 parent 8ab9763 commit 88cb8cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shell2http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ func Test_parseCGIHeaders(t *testing.T) {
out: "Header: value\nText: \n\ntext",
headers: map[string]string{},
},
{
in: "Location: url\r\nX-Name: x-value\r\n\r\nOn Windows",
out: "On Windows",
headers: map[string]string{"Location": "url", "X-Name": "x-value"},
},
}

for i, item := range data {
Expand Down

0 comments on commit 88cb8cd

Please sign in to comment.