Commit da058cb1 authored by Yawning Angel's avatar Yawning Angel
Browse files

fixup! Bug 24793: Send the correct authorization HTTP header for basic auth.

parent f01e92dd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
Changes in version 0.0.9 - UNRELEASED:
 - Various meek_lite code cleanups and bug fixes.
 - Bug 29077: uTLS for ClientHello camouflage (meek_lite).
 - More fixes to HTTP Basic auth.

Changes in version 0.0.8 - 2019-01-20:
 - Bug 24793: Send the correct authorization HTTP header for basic auth.
+1 −1
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@ func (s *httpProxy) Dial(network, addr string) (net.Conn, error) {
	if s.haveAuth {
		// SetBasicAuth doesn't quite do what is appropriate, because
		// the correct header is `Proxy-Authorization`.
		req.Header.Set("Proxy-Authorization", base64.StdEncoding.EncodeToString([]byte(s.username+":"+s.password)))
		req.Header.Set("Proxy-Authorization", "Basic " + base64.StdEncoding.EncodeToString([]byte(s.username+":"+s.password)))
	}
	req.Header.Set("User-Agent", "")