Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. cmd/generic-handlers.go

    	} {
    		if hasValidAuth(r) {
    			authTypeCount++
    		}
    	}
    	return authTypeCount > 1
    }
    
    // requestValidityHandler validates all the incoming paths for
    // any malicious requests.
    func setRequestValidityMiddleware(h http.Handler) http.Handler {
    	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 20.5K bytes
    - Viewed (0)
Back to top