5 Commits

Author SHA1 Message Date
Fractal147
9f4d7a9988 Fixed unnecessary globals as in issue #113. (#122)
* Fixed global assignment that should be local

Made result variable be local, see Issue #113

* Made global variable local

Made ASCII variable be local, see Issue #113

* Made more variables local

Related to Issue #113. questionMarkPos, and b,c,d,e,f all are global in scope, and are not cleared from memory, so leak.
Frankly, b, c, d, e, and f are not used either, but will now get GC'd later, if they ever were assigned, so not problematic
line 114 also has _ and i to make local too, so were put on their own line.
i on line 24 also was unnecessarily global, and undetected in issue #113

* Made module more local

Made the basicAuth table local in scope. Since it is returned when dofile is called in httpserver.lua, that already has a correctly scoped table, 'auth'. This is related to issue #113, and should reduce memory loss to globals

* Made bufferedConnection local

bufferedConnection was global and didn't have to be. Part of issue #113.
Now no longer remains in _G (globals table) after a connection has closed.
2018-01-14 22:03:37 -06:00
Marcos Kirsch
79e345d964 Allow multiple users for basic HTTP authentication. 2016-12-28 14:16:58 -06:00
Marcos Kirsch
37e58389c6 Trivial improvement to print message 2016-02-15 13:46:50 -06:00
Marcos Kirsch
0bd5e20c62 Retrofit for renamed file, display configurable realm 2015-07-19 13:33:47 -05:00
Samuel A. Dieck
be63ee0093 Added basic auth. Added static settings file 2015-07-18 23:17:14 -05:00