Skip to content

Commit 7b69ccd

Browse files
committed
fix neq expression
Signed-off-by: sh2 <[email protected]>
1 parent b856e99 commit 7b69ccd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conformance/utils/http/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ func CompareRequest(t *testing.T, req *roundtripper.Request, cReq *roundtripper.
345345
if strings.ToLower(cRes.RedirectRequest.Scheme) == "https" && gotPort != "443" && gotPort != "" {
346346
return fmt.Errorf("for https scheme, expected redirected port to be 443 or not set, got %q", gotPort)
347347
}
348-
if strings.ToLower(cRes.RedirectRequest.Scheme) != "http" || strings.ToLower(cRes.RedirectRequest.Scheme) == "https" {
348+
if strings.ToLower(cRes.RedirectRequest.Scheme) != "http" || strings.ToLower(cRes.RedirectRequest.Scheme) != "https" {
349349
t.Logf("Can't validate redirectPort for unrecognized scheme %v", cRes.RedirectRequest.Scheme)
350350
}
351351
} else if expected.RedirectRequest.Port != gotPort {

0 commit comments

Comments
 (0)