Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for wantTrailers (0.17 sec)

  1. cmd/streaming-v4-unsigned.go

    		key := strings.ToLower(line[:idx])
    		value := line[idx+1:]
    		if _, ok := wantTrailers[key]; !ok {
    			if cr.debug {
    				fmt.Printf("Unknown key %q - expected on of %v\n", key, cr.trailers)
    			}
    			return errMalformedEncoding
    		}
    		cr.trailers.Set(key, value)
    		delete(wantTrailers, key)
    	}
    
    	// Check if we got all we want.
    	if len(wantTrailers) > 0 {
    		return io.ErrUnexpectedEOF
    	}
    	return nil
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat May 06 02:53:12 GMT 2023
    - 6.1K bytes
    - Viewed (1)
  2. cmd/streaming-signature-v4.go

    		}
    		key := line[:idx]
    		value := line[idx+1:]
    		if _, ok := wantTrailers[key]; !ok {
    			if cr.debug {
    				fmt.Printf("%q not found in %q\n", key, cr.trailers)
    			}
    			return errMalformedEncoding
    		}
    		cr.trailers.Set(key, value)
    		delete(wantTrailers, key)
    	}
    
    	// Check if we got all we want.
    	if len(wantTrailers) > 0 {
    		return io.ErrUnexpectedEOF
    	}
    	return nil
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 18.2K bytes
    - Viewed (0)
Back to top