Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for reqBytes (0.17 sec)

  1. src/net/http/readrequest_test.go

    	{"smuggle_two_contentlen", reqBytes(`POST / HTTP/1.1
    Content-Length: 3
    Content-Length: 4
    
    abc`)},
    	{"smuggle_two_content_len_head", reqBytes(`HEAD / HTTP/1.1
    Host: foo
    Content-Length: 4
    Content-Length: 5
    
    1234`)},
    
    	// golang.org/issue/22464
    	{"leading_space_in_header", reqBytes(`GET / HTTP/1.1
     Host: foo`)},
    	{"leading_tab_in_header", reqBytes(`GET / HTTP/1.1
    ` + "\t" + `Host: foo`)},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 14 22:23:32 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. internal/config/identity/openid/providercfg.go

    	if err != nil {
    		return nil, err
    	}
    
    	defer xhttp.DrainBody(resp.Body)
    	if resp.StatusCode != http.StatusOK {
    		// uncomment this for debugging when needed.
    		// reqBytes, _ := httputil.DumpRequest(req, false)
    		// fmt.Println(string(reqBytes))
    		// respBytes, _ := httputil.DumpResponse(resp, true)
    		// fmt.Println(string(respBytes))
    		return nil, errors.New(resp.Status)
    	}
    
    	claims := map[string]interface{}{}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. cmd/tier-handlers.go

    		return
    	}
    
    	password := cred.SecretKey
    	reqBytes, err := madmin.DecryptData(password, io.LimitReader(r.Body, r.ContentLength))
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErrWithErr(ErrAdminConfigBadJSON, err), r.URL)
    		return
    	}
    
    	var cfg madmin.TierConfig
    	json := jsoniter.ConfigCompatibleWithStandardLibrary
    	if err := json.Unmarshal(reqBytes, &cfg); err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. cmd/admin-handlers-idp-ldap.go

    	// Validate API arguments in body.
    	password := cred.SecretKey
    	reqBytes, err := madmin.DecryptData(password, io.LimitReader(r.Body, r.ContentLength))
    	if err != nil {
    		adminLogIf(ctx, err)
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAdminConfigBadJSON), r.URL)
    		return
    	}
    
    	var par madmin.PolicyAssociationReq
    	err = json.Unmarshal(reqBytes, &par)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 03 19:58:48 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  5. cmd/admin-handlers-idp-config.go

    	contentType := r.Header.Get("Content-Type")
    	if contentType != "application/octet-stream" {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrBadRequest), r.URL)
    		return
    	}
    
    	password := cred.SecretKey
    	reqBytes, err := madmin.DecryptData(password, io.LimitReader(r.Body, r.ContentLength))
    	if err != nil {
    		adminLogIf(ctx, err)
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAdminConfigBadJSON), r.URL)
    		return
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbSessionImpl.java

                    }
    
                    if ( preauthIntegrity ) {
                        byte[] reqBytes = request.getRawPayload();
                        this.preauthIntegrityHash = trans.calculatePreauthHash(reqBytes, 0, reqBytes.length, this.preauthIntegrityHash);
    
                        if ( response.getStatus() == NtStatus.NT_STATUS_MORE_PROCESSING_REQUIRED ) {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Nov 14 17:41:04 UTC 2021
    - 49K bytes
    - Viewed (0)
  7. cmd/admin-handlers-users.go

    		return
    	}
    
    	password := cred.SecretKey
    	reqBytes, err := madmin.DecryptData(password, io.LimitReader(r.Body, r.ContentLength))
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErrWithErr(ErrAdminConfigBadJSON, err), r.URL)
    		return
    	}
    
    	var updateReq madmin.UpdateServiceAccountReq
    	if err = json.Unmarshal(reqBytes, &updateReq); err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 28 17:19:04 UTC 2024
    - 78.6K bytes
    - Viewed (0)
  8. src/net/http/serve_test.go

    }
    
    func (c *testConn) Close() error {
    	select {
    	case c.closec <- true:
    	default:
    	}
    	return nil
    }
    
    // reqBytes treats req as a request (with \n delimiters) and returns it with \r\n delimiters,
    // ending in \r\n\r\n
    func reqBytes(req string) []byte {
    	return []byte(strings.ReplaceAll(strings.TrimSpace(req), "\n", "\r\n") + "\r\n\r\n")
    }
    
    type handlerTest struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  9. cmd/admin-bucket-handlers.go

    		return
    	}
    	password := cred.SecretKey
    
    	reqBytes, err := madmin.DecryptData(password, io.LimitReader(r.Body, r.ContentLength))
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErrWithErr(ErrAdminConfigBadJSON, err), r.URL)
    		return
    	}
    	var target madmin.BucketTarget
    	json := jsoniter.ConfigCompatibleWithStandardLibrary
    	if err = json.Unmarshal(reqBytes, &target); err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/testdata/append_test.go

    //go:noinline
    func appendThree_ssa(a []int, x, y, z int) []int {
    	return append(a, x, y, z)
    }
    
    func eqBytes(a, b []int) bool {
    	if len(a) != len(b) {
    		return false
    	}
    	for i := range a {
    		if a[i] != b[i] {
    			return false
    		}
    	}
    	return true
    }
    
    func expect(t *testing.T, got, want []int) {
    	if eqBytes(got, want) {
    		return
    	}
    	t.Errorf("expected %v, got %v\n", want, got)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 1.2K bytes
    - Viewed (0)
Back to top