Closed raymonstah closed 2 years ago
When clients set up a requester.Work with a RequestFunc instead of a Request, we panic because we try to access the Host field on a nil Request.
requester.Work
RequestFunc
Request
I think we can omit setting the TLSClientConfig.ServerName since there seems to be a fallback for that.
TLSClientConfig.ServerName
I also added a test for RequestFunc
@rakyll thoughts on this?
When clients set up a
requester.Work
with aRequestFunc
instead of aRequest
, we panic because we try to access the Host field on a nil Request.I think we can omit setting the
TLSClientConfig.ServerName
since there seems to be a fallback for that.I also added a test for
RequestFunc