1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-12-22 04:02:04 +03:00
Commit Graph

2 Commits

Author SHA1 Message Date
bel
a1d9858c15 Performance optimization for the form handling example in Lua
Optimization of example for question ("issue") #70:

Concatenating many strings in a loop in Lua is not efficient.
The standard solution for this is a Lua string builder pattern:
Store all strings in a table and use table.concat
2015-03-18 00:34:26 +01:00
bel
821a36af17 Add example how to handle form data and file upload in Lua
The Lua code example is from the Civetweb discussion group:
https://groups.google.com/forum/#!topic/civetweb/m9ojynOyzU4

This is also an example that might answer a question posted as an issue in Github:
https://github.com/bel2125/civetweb/issues/70
Question: how to get header, parse POSTed content in Lua? (issue #70)
2015-03-18 00:34:23 +01:00