test: update IsHTTPS test to use middleware.IsHTTPS
This commit is contained in:
@@ -188,7 +188,7 @@ func TestIsHTTPS(t *testing.T) {
|
|||||||
t.Skip("Cannot test TLS with httptest.NewRequest")
|
t.Skip("Cannot test TLS with httptest.NewRequest")
|
||||||
}
|
}
|
||||||
|
|
||||||
result := IsHTTPS(req)
|
result := middleware.IsHTTPS(req)
|
||||||
if result != tt.expected {
|
if result != tt.expected {
|
||||||
t.Errorf("Expected %v, got %v", tt.expected, result)
|
t.Errorf("Expected %v, got %v", tt.expected, result)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user