AHKhttp icon indicating copy to clipboard operation
AHKhttp copied to clipboard

Error in headers at serveFile

Open luancontrolz opened this issue 4 years ago • 0 comments

ServeFile(ByRef response, file) { f := FileOpen(file, "r") length := f.RawRead(data, f.Length) f.Close() response.SetBody(data, length) res.headers["Content-Type"] := this.GetMimeType(file) }

The bold line i think res sould be response.

luancontrolz avatar Dec 22 '20 10:12 luancontrolz