"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/net/http/transport.go" between
go1.13.5.src.tar.gz and go1.13.6.src.tar.gz

About: Google’s Go is a compiled, garbage-collected, concurrent programming language. Latest stable release (1.13).

transport.go  (go1.13.5.src):transport.go  (go1.13.6.src)
skipping to change at line 1529 skipping to change at line 1529
pconn.mutateHeaderFunc = func(h Header) { pconn.mutateHeaderFunc = func(h Header) {
h.Set("Proxy-Authorization", pa) h.Set("Proxy-Authorization", pa)
} }
} }
case cm.targetScheme == "https": case cm.targetScheme == "https":
conn := pconn.conn conn := pconn.conn
hdr := t.ProxyConnectHeader hdr := t.ProxyConnectHeader
if hdr == nil { if hdr == nil {
hdr = make(Header) hdr = make(Header)
} }
if pa := cm.proxyAuth(); pa != "" {
hdr = hdr.Clone()
hdr.Set("Proxy-Authorization", pa)
}
connectReq := &Request{ connectReq := &Request{
Method: "CONNECT", Method: "CONNECT",
URL: &url.URL{Opaque: cm.targetAddr}, URL: &url.URL{Opaque: cm.targetAddr},
Host: cm.targetAddr, Host: cm.targetAddr,
Header: hdr, Header: hdr,
} }
if pa := cm.proxyAuth(); pa != "" {
connectReq.Header.Set("Proxy-Authorization", pa)
}
connectReq.Write(conn) connectReq.Write(conn)
// Read response. // Read response.
// Okay to use and discard buffered reader here, because // Okay to use and discard buffered reader here, because
// TLS server will not speak until spoken to. // TLS server will not speak until spoken to.
br := bufio.NewReader(conn) br := bufio.NewReader(conn)
resp, err := ReadResponse(br, connectReq) resp, err := ReadResponse(br, connectReq)
if err != nil { if err != nil {
conn.Close() conn.Close()
return nil, err return nil, err
 End of changes. 2 change blocks. 
3 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)