Use net/http Request.WithContext instead of NewRequestWithContext.
commit63312a68ab3b2e2ef8da1848989956a5361f138d
authorDavid Fifield <david@bamsoftware.com>
Thu, 24 Jun 2021 06:26:59 +0000 (24 00:26 -0600)
committerDavid Fifield <david@bamsoftware.com>
Thu, 24 Jun 2021 06:26:59 +0000 (24 00:26 -0600)
tree8e6a2f0a5d31f3eccfb11efe3e2a601ff425ded9
parent38cb420d9eee1576791f8b44b0274273bc922d62
Use net/http Request.WithContext instead of NewRequestWithContext.

The latter was added only in go1.13:
https://golang.org/doc/go1.13#net/http

https://blog.cloudflare.com/the-complete-guide-to-golang-net-http-timeouts/#cancelandcontext
champa-client/amp.go