133 Commits

Author SHA1 Message Date
Samuel A. Dieck
be63ee0093 Added basic auth. Added static settings file 2015-07-18 23:17:14 -05:00
Marcos
cac11d9a1a Merge pull request #26 from borromeotlhs/patch-6
Update file_list.lua
2015-07-17 17:07:54 -05:00
TJ Borromeo
25a7313af5 Update file_list.lua
get rid of variables if not actually used.  Create variables only when a condition to use them is met.
2015-07-17 14:17:09 -07:00
Marcos
a86f2d6384 Merge pull request #23 from geekscape/master
Correct check wifi.sta.getip() so that Wi-Fi station connection works.
2015-05-16 07:10:47 -05:00
Andy Gelme
90d533b555 Correct check wifi.sta.getip() so that Wi-Fi station connection works. 2015-05-16 16:56:28 +10:00
Marcos
e25b9c5ac0 Merge pull request #22 from borromeotlhs/patch-5
Update init.lua
2015-05-06 17:28:06 -05:00
Marcos
94c56a02b9 Merge pull request #21 from borromeotlhs/patch-4
Fix improper syntax in list
2015-05-06 17:27:33 -05:00
TJ Borromeo
fe2f227b0b Merge pull request #1 from borromeotlhs/rework-headers
Rework headers
2015-05-06 13:58:12 -07:00
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
7beec37206 Update init.lua
Add one local variable to reduce one function call and take advantage of nil<=>false equivalance.
2015-05-06 13:25:02 -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
Marcos
970906a89a Merge pull request #18 from borromeotlhs/patch-1
De-duplicate wifi.sta.getip() call
2015-05-02 07:28:46 -05:00
Marcos
f728775618 Merge pull request #19 from borromeotlhs/patch-2
Remove unnecessary if statements
2015-05-02 07:26:27 -05:00
Marcos
3e592adfcd Merge pull request #20 from borromeotlhs/patch-3
create a maintainable way to add HTTP Status codez
2015-05-02 07:25:46 -05: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
TJ Borromeo
91c16d1e24 Remove unnecessary if statements
nil is false in lua, just utilizing that fact.
2015-04-24 15:06:34 -07:00
TJ Borromeo
925af34b1a De-duplicate wifi.sta.getip() call
Technically, if the wifi.sta.getip() or wifi.ap.getip() call return invalid ip addresses, you shouldn't assume that it's running.  However, the lack of that type of check means that this change will function similarly without incurring another function call in a constrained stack/heap environment.
2015-04-24 14:54:13 -07:00
Marcos
7a1a60f383 Merge pull request #17 from pastukhov/master
Add xml mime type
2015-04-21 09:14:53 -05:00
Artem Pastukhov
243ab35720 Add xml mime type 2015-04-21 09:34:05 +03:00
Marcos Kirsch
ead632d131 Refactoring - function for sending headers is now in its own file. All errors are sent using coroutine. Some other memory usage improvements 2015-04-19 23:42:58 -05:00
Marcos Kirsch
453f38b52f Small wording improvement 2015-04-19 23:40:36 -05:00
Marcos Kirsch
c7b20c0674 shortened file 2015-04-19 23:38:25 -05:00
Marcos Kirsch
0cc7a8b7be Fix issue 16: gzip example files are too large, replace with much smaller one 2015-04-19 14:48:29 -05:00
Marcos Kirsch
99be566549 Improved for easier configuration, better messages, and slightly improved memory handling 2015-04-18 23:21:01 -05:00
Marcos Kirsch
7bd9b266be Improved error handling, although some bugs still persist 2015-04-18 23:19:08 -05:00
Marcos Kirsch
76c2895f04 Minimum changes to print formatting 2015-04-18 23:15:10 -05:00
Marcos Kirsch
3125f997f7 Changed upload to upload_all which is more clear. You can now use make upload to upload a specific file 2015-04-18 23:13:04 -05:00
Marcos Kirsch
572732fd44 Add sample file with a form using method POST 2015-04-18 23:12:04 -05:00
Marcos
3390d6f6e9 Added note about .gz support 2015-04-03 08:27:44 -05:00
Marcos
2162192d26 Merge pull request #14 from pastukhov/master
Add ability to serve gz compressed files. It should end with .gz
2015-04-03 08:25:59 -05:00
Artem Pastukhov
489ecb2544 fix %.gz regexp 2015-04-03 13:23:33 +03:00
Artem Pastukhov
6d608af486 Fix end of line 2015-04-03 12:50:41 +03:00
Artem Pastukhov
a51a4d929b Fixes, fixes 2015-04-02 16:57:26 +03:00
Artem Pastukhov
596d9dd06b Fixes 2015-04-02 16:11:33 +03:00
Artem Pastukhov
dd7aa55d96 Fixes 2015-04-02 16:09:38 +03:00
Artem Pastukhov
e9903863a9 Manual merge changes 2015-04-02 16:07:25 +03:00
Artem Pastukhov
da17c3b346 Merge branch 'master' of https://github.com/pastukhov/nodemcu-httpserver
Conflicts:
	Makefile
	http/node_info.lua
	httpserver-static.lua
2015-04-02 16:02:39 +03:00
Artem Pastukhov
d198d1b433 add jquery and gz tests 2015-04-02 15:45:02 +03:00
Artem Pastukhov
60a95c420d remove http/ual.lua 2015-04-02 15:44:01 +03:00
Artem Pastukhov
6189a49f93 some fixes 2015-04-02 15:41:33 +03:00
Artem Pastukhov
278ee10a7c some fixes 2015-04-02 15:40:57 +03:00
Artem Pastukhov
a4a61c8329 some fixes 2015-04-02 15:39:37 +03:00
Artem Pastukhov
a37de51189 some fixes 2015-04-02 15:37:40 +03:00
Artem Pastukhov
11d1f96351 Update init.lua 2015-04-02 15:32:33 +03:00
Artem Pastukhov
5301792d16 Revert "Update init.lua"
This reverts commit 4989410f7b82a45de910b2f98a1a2d630090ad3b.

Conflicts:
	init.lua
2015-04-02 14:57:14 +03:00
Marcos Kirsch
2357415466 Retrofit for newer nodemcu-uploader 2015-04-01 23:14:52 -05:00
Marcos Kirsch
f09fe9a610 Fix typo: It's json not josn 2015-04-01 22:58:25 -05:00