Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for HasPrefix (0.14 sec)

  1. cmd/generic-handlers_contrib.go

    import (
    	"net/http"
    	"strings"
    )
    
    // guessIsLoginSTSReq - returns true if incoming request is Login STS user
    func guessIsLoginSTSReq(req *http.Request) bool {
    	if req == nil {
    		return false
    	}
    	return strings.HasPrefix(req.URL.Path, loginPathPrefix) ||
    		(req.Method == http.MethodPost && req.URL.Path == SlashSeparator &&
    			getRequestAuthType(req) == authTypeSTS)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 30 15:50:39 GMT 2021
    - 995 bytes
    - Viewed (0)
Back to top