Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for proto2 (0.39 sec)

  1. cmd/generic-handlers_test.go

    	u, err := url.Parse("http://localhost:9000/minio/lock")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	r := &http.Request{
    		Proto:  "HTTP/1.0",
    		Method: http.MethodPost,
    		URL:    u,
    	}
    	if !guessIsRPCReq(r) {
    		t.Fatal("Test shouldn't fail for a possible net/rpc request.")
    	}
    	r = &http.Request{
    		Proto:  "HTTP/1.1",
    		Method: http.MethodGet,
    	}
    	if guessIsRPCReq(r) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  2. internal/event/rules_test.go

    		rules          Rules
    		objectName     string
    		expectedResult TargetIDSet
    	}{
    		{rulesCase1, "photos.jpg", NewTargetIDSet()},
    		{rulesCase2, "photos.jpg", NewTargetIDSet(TargetID{"1", "webhook"})},
    		{rulesCase3, "2010/photos.jpg", NewTargetIDSet(TargetID{"1", "webhook"})},
    		{rulesCase4, "2000/photos.jpg", NewTargetIDSet()},
    	}
    
    	for i, testCase := range testCases {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 8.8K bytes
    - Viewed (0)
  3. internal/grid/trace.go

    		Time:      start,
    		Duration:  end.Sub(start),
    		Path:      t.Subroute,
    		Error:     errString,
    		HTTP: &madmin.TraceHTTPStats{
    			ReqInfo: madmin.TraceRequestInfo{
    				Time:    start,
    				Proto:   "grid",
    				Method:  "REQ",
    				Client:  local,
    				Headers: nil,
    				Path:    t.Subroute,
    				Body:    []byte(body),
    			},
    			RespInfo: madmin.TraceResponseInfo{
    				Time:       end,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 02 22:54:54 GMT 2024
    - 4K bytes
    - Viewed (0)
  4. internal/handlers/proxy.go

    		scheme = strings.ToLower(proto)
    	} else if proto = r.Header.Get(xForwardedScheme); proto != "" {
    		scheme = strings.ToLower(proto)
    	} else if proto := r.Header.Get(forwarded); proto != "" {
    		// match should contain at least two elements if the protocol was
    		// specified in the Forwarded header. The first element will always be
    		// the 'for=', which we ignore, subsequently we proceed to look for
    		// 'proto=' which should precede right after `for=` if not
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 22 00:56:55 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  5. internal/handlers/proxy_test.go

    		{xForwardedScheme, "HTTP", "http"},
    		{forwarded, `For="[2001:db8:cafe::17]:4711`, ""},                    // No proto
    		{forwarded, `for=192.0.2.43, for=198.51.100.17;proto=https`, ""},    // Multiple params, will be empty.
    		{forwarded, `for=172.32.10.15; proto=https;by=127.0.0.1;`, "https"}, // Space before proto
    		{forwarded, `for=192.0.2.60;proto=http;by=203.0.113.43`, "http"},    // Multiple params
    	}
    	for _, v := range headers {
    		req := &http.Request{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 22 00:56:55 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  6. .github/stale.yml

    # Configuration for probot-stale - https://github.com/probot/stale
    
    # Number of days of inactivity before an Issue or Pull Request becomes stale
    daysUntilStale: 30
    
    # Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
    # Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
    daysUntilClose: 15
    
    Others
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jan 24 04:36:59 GMT 2022
    - 2K bytes
    - Viewed (0)
  7. cmd/object-api-listobjects_test.go

    				{Name: "Asia/India/India-summer-photos-1"},
    				{Name: "Asia/India/Karnataka/Bangalore/Koramangala/pics"},
    				{Name: "newPrefix0"},
    				{Name: "newPrefix1"},
    			},
    		},
    		// ListObjectsResult-2.
    		// (TestCase 24).
    		2: {
    			IsTruncated: true,
    			Objects: []ObjectInfo{
    				{Name: "Asia-maps.png"},
    				{Name: "Asia/India/India-summer-photos-1"},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  8. cmd/api-response.go

    	// unit tests do not have host set.
    	if r.Host == "" {
    		return path.Clean(r.URL.Path)
    	}
    	proto := handlers.GetSourceScheme(r)
    	if proto == "" {
    		proto = getURLScheme(globalIsTLS)
    	}
    	u := &url.URL{
    		Host:   r.Host,
    		Path:   path.Join(SlashSeparator, bucket, object),
    		Scheme: proto,
    	}
    	// If domain is set then we need to use bucket DNS style.
    	for _, domain := range domains {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 33.3K bytes
    - Viewed (2)
  9. internal/rest/client.go

    	rc, ok := body.(io.ReadCloser)
    	if !ok && body != nil {
    		rc = io.NopCloser(body)
    	}
    	req := &http.Request{
    		Method:     http.MethodPost,
    		URL:        &u,
    		Proto:      "HTTP/1.1",
    		ProtoMajor: 1,
    		ProtoMinor: 1,
    		Header:     make(http.Header),
    		Body:       rc,
    		Host:       u.Host,
    	}
    	req = req.WithContext(ctx)
    	if body != nil {
    		switch v := body.(type) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  10. .github/workflows/mint/nginx.conf

                proxy_set_header Host $http_host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header X-Forwarded-Proto $scheme;
    
                proxy_connect_timeout 300;
                # Default is HTTP/1, keepalive is only enabled in HTTP/1.1
                proxy_http_version 1.1;
                proxy_set_header Connection "";
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 31 21:38:10 GMT 2023
    - 3K bytes
    - Viewed (0)
Back to top