Skip to content

Commit

Permalink
Changed test to make sure joewalnes#96 is not happening
Browse files Browse the repository at this point in the history
  • Loading branch information
asergeyev committed Feb 16, 2015
1 parent 2188571 commit 3025bde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libwebsocketd/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ var CheckOriginTests = []struct {
{"server.example.com", ReqHTTP, "http://example.com", OriginCouldDiffer, []string{"example.com:81"}, ReturnsError, "origin allowed port mismatch"},
{"server.example.com", ReqHTTP, "http://example.com", OriginCouldDiffer, []string{"example.com:81"}, ReturnsError, "origin allowed port mismatch"},
{"server.example.com", ReqHTTP, "http://example.com:81", OriginCouldDiffer, []string{"example.com:81"}, ReturnsPass, "origin allowed port 81 match"},
{"server.example.com", ReqHTTP, "null", OriginCouldDiffer, NoOriginList, ReturnsPass, "any origin allowed, even null"},
{"server.example.com", ReqHTTP, "", OriginCouldDiffer, NoOriginList, ReturnsPass, "any origin allowed, even empty"},
}

func TestCheckOrigin(t *testing.T) {
Expand Down

0 comments on commit 3025bde

Please sign in to comment.