8 Commits

Author SHA1 Message Date
TJ Borromeo
2672d3b467 Keep return type as is
No need for 501 error code, as this should be returned only when needed, and will be much more efficient to not:
1.) take a table entry for the majority of cases when it isn't needed
2.) Utilize only enough memory needed to instantiate a string when it _is_ needed.
2015-05-06 13:54:21 -07:00
TJ Borromeo
e01e97469f Update httpserver-header.lua 2015-05-06 13:42:06 -07:00
TJ Borromeo
0c17703b46 change return type
allows the error check to be more functional
2015-05-06 13:39:32 -07:00
TJ Borromeo
219baa7b62 Update httpserver-header.lua 2015-05-06 13:36:20 -07:00
TJ Borromeo
b4842301a0 Fix improper syntax in list
brackets needed for non-standard table indexing.   Also added a trailing comma as its valid (and more consistent, imo).
2015-05-06 13:16:47 -07:00
TJ Borromeo
472e397429 create a maintainable way to add HTTP Status codez
Again, nil is default for attrs not present in a table, so if you're not nil, you should just return what you know is defined.  Otherwise, return the "Unknown HTTP Status" default string.
2015-04-24 15:20:06 -07:00
Artem Pastukhov
243ab35720 Add xml mime type 2015-04-21 09:34:05 +03:00
Marcos Kirsch
453f38b52f Small wording improvement 2015-04-19 23:40:36 -05:00