1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-08 12:31:58 +00:00

Add a TestRedirectHTTP/HTTPS

Former-commit-id: 0739e0cb4dc15c317b66b8da812cbd83fa0ea32f
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-02-19 09:45:05 +02:00
parent 1d60df1237
commit f9b2b8aa69
2 changed files with 37 additions and 0 deletions

View File

@@ -109,6 +109,10 @@ func TestMuxSimple(t *testing.T) {
t.Fatalf("Error when comparing length of url parameters %d != %d", len(r.URLParams), len(ctx.URLParams()))
}
paramsKeyVal := ""
///TODO:
// Gorilla mux saves and gets its vars by map, so no specific order
//
// I should change this test below:
for idxp, p := range r.URLParams {
val := ctx.URLParam(p.Key)
paramsKeyVal += p.Key + "=" + val + ","