aboutsummaryrefslogtreecommitdiff
path: root/request.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2020-11-01 16:25:59 -0500
committerAdnan Maolood <[email protected]>2020-11-01 16:25:59 -0500
commitb6475aa7d997a680742d2d8285cb8d95e2437989 (patch)
tree7bb004919473385a4b772f46e3e5c7601c5ce146 /request.go
parentPrevent infinite loop in client requests (diff)
downloadgo-gemini-b6475aa7d997a680742d2d8285cb8d95e2437989.tar.xz
go-gemini-b6475aa7d997a680742d2d8285cb8d95e2437989.zip
server: Populate (*Request).Certificate fieldv0.1.5
Diffstat (limited to 'request.go')
-rw-r--r--request.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/request.go b/request.go
index 971d774..f55f569 100644
--- a/request.go
+++ b/request.go
@@ -19,7 +19,9 @@ type Request struct {
// Certificate specifies the TLS certificate to use for the request.
// Request certificates take precedence over client certificates.
- // This field is ignored by the server.
+ //
+ // On the server side, if the client provided a certificate then
+ // Certificate.Leaf is guaranteed to be non-nil.
Certificate *tls.Certificate
// RemoteAddr allows servers and other software to record the network