From 96f3a7607ffbdb349a4c2eff35efdf11b8d35a4e Mon Sep 17 00:00:00 2001 From: tjpcc Date: Tue, 10 Jan 2023 13:46:35 -0700 Subject: Add a CGI contrib --- gemini/request.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gemini/request.go') diff --git a/gemini/request.go b/gemini/request.go index 248ce67..43ee69b 100644 --- a/gemini/request.go +++ b/gemini/request.go @@ -5,6 +5,7 @@ import ( "crypto/tls" "errors" "io" + "net" "net/url" ) @@ -15,7 +16,9 @@ var InvalidRequestLineEnding = errors.New("invalid request line ending") type Request struct { *url.URL - TLSState *tls.ConnectionState + Server *Server + RemoteAddr net.Addr + TLSState *tls.ConnectionState } // ParseRequest parses a single gemini request from a reader. -- cgit v1.2.3