From 41c95add81adf38265f6f3dcbe88b0b0eb2cfa0e Mon Sep 17 00:00:00 2001 From: Adnan Maolood Date: Wed, 24 Feb 2021 08:34:04 -0500 Subject: [PATCH] Add unexported method to timeout writer --- handler.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/handler.go b/handler.go index 5c7d9aa..7da523d 100644 --- a/handler.go +++ b/handler.go @@ -123,7 +123,6 @@ func (t *timeoutHandler) ServeGemini(ctx context.Context, w ResponseWriter, r *R } type timeoutWriter struct { - ResponseWriter wc io.WriteCloser status Status meta string @@ -158,3 +157,5 @@ func (w *timeoutWriter) Flush() error { func (w *timeoutWriter) Close() error { return w.wc.Close() } + +func (w *timeoutWriter) unexported() {}