Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for UseEncodedPath (0.2 sec)

  1. cmd/crossdomain-xml-handler_test.go

    	"net/http/httptest"
    	"testing"
    
    	"github.com/minio/mux"
    )
    
    // Test cross domain xml handler.
    func TestCrossXMLHandler(t *testing.T) {
    	// Server initialization.
    	router := mux.NewRouter().SkipClean(true).UseEncodedPath()
    	handler := setCrossDomainPolicyMiddleware(router)
    	srv := httptest.NewServer(handler)
    
    	resp, err := http.Get(srv.URL + crossDomainXMLEntity)
    	if err != nil {
    		t.Fatal(err)
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Jul 08 14:31:42 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  2. cmd/routers.go

    	// Initialize router. `SkipClean(true)` stops minio/mux from
    	// normalizing URL path minio/minio#3256
    	router := mux.NewRouter().SkipClean(true).UseEncodedPath()
    
    	// Initialize distributed NS lock.
    	if globalIsDistErasure {
    		registerDistErasureRouters(router, endpointServerPools)
    	}
    
    	// Add Admin router, all APIs are enabled in server mode.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Mar 08 19:08:18 GMT 2024
    - 3.6K bytes
    - Viewed (1)
  3. cmd/test-utils_test.go

    	// initialize a new mux router.
    	// goriilla/mux is the library used to register all the routes and handle them.
    	muxRouter := mux.NewRouter().SkipClean(true).UseEncodedPath()
    	if len(apiFunctions) > 0 {
    		// Iterate the list of API functions requested for and register them in mux HTTP handler.
    		registerAPIFunctions(muxRouter, objLayer, apiFunctions...)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:06:57 GMT 2024
    - 75.7K bytes
    - Viewed (0)
Back to top