Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for wantTrailers (0.1 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
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat May 06 02:53:12 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  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
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 18.2K bytes
    - Viewed (0)
Back to top