github.com/rajeev159/opa@v0.45.0/topdown/http_fixup_darwin.go (about)

     1  //go:build go1.18
     2  // +build go1.18
     3  
     4  package topdown
     5  
     6  func fixupDarwinGo118(x, y string) string {
     7  	switch x {
     8  	case "x509: certificate signed by unknown authority":
     9  		return y
    10  	default:
    11  		return x
    12  	}
    13  }