Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for removeHopByHopHeaders (0.13 sec)

  1. src/net/http/httputil/reverseproxy.go

    		// it'll recover the panic.
    		return true
    	}
    	// Otherwise act like Go 1.10 and earlier to not break
    	// existing tests.
    	return false
    }
    
    // removeHopByHopHeaders removes hop-by-hop headers.
    func removeHopByHopHeaders(h http.Header) {
    	// RFC 7230, section 6.1: Remove headers listed in the "Connection" header.
    	for _, f := range h["Connection"] {
    		for _, sf := range strings.Split(f, ",") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 23:37:42 UTC 2024
    - 24.9K bytes
    - Viewed (0)
Back to top