From 34df6599cbcd36cf34873c000252bd5b9e94d8c3 Mon Sep 17 00:00:00 2001 From: bolkedebruin Date: Thu, 18 Mar 2021 08:33:46 +0100 Subject: [PATCH] Enable smart sizing Smart sizing removes, in clients that support it, the scroll bars. --- api/web.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/web.go b/api/web.go index edb0cb6..e7ccd84 100644 --- a/api/web.go +++ b/api/web.go @@ -213,7 +213,8 @@ func (c *Config) HandleDownload(w http.ResponseWriter, r *http.Request) { "connection type:i:"+strconv.Itoa(c.ConnectionType)+"\r\n"+ "username:s:"+render+"\r\n"+ "domain:s:"+domain+"\r\n"+ - "bitmapcachesize:i:32000\r\n" + "bitmapcachesize:i:32000\r\n"+ + "smart sizing:i:1\r\n" http.ServeContent(w, r, fn, time.Now(), strings.NewReader(data)) }