aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* chore: Update internal version references to match release (#370)Robert Scheck2022-03-282-2/+2
|
* chore; add Lua 5.4 to make filesThijs Schreijer2022-03-231-6/+6
|
* http.lua: set transfer-encoding if source and no content-lengthJulian Squires2022-03-221-0/+7
| | | | | | | | | | | | | | If a source is specified without a content-length header, LuaSocket sends the data in the chunked transfer coding; however, it doesn't set the transfer-encoding header. While I recognize that the user can set this manually, this is a gotcha that has caught me multiple times. RFC7230, section 3.3.3 (https://tools.ietf.org/html/rfc7230#section-3.3.3) is clear about this; if neither content-length nor transfer-encoding chunked are specified, the request message body length is zero. While some servers may ignore this, I have encountered several that follow the RFC in this regard, most recently golang's net/http.
* src/ltn12.lua: remove duplicated codesdavid2022-03-211-3/+3
|
* Merge pull request #354 from lunarmodules/linterCaleb Maclennan2022-03-196-35/+24
|\
| * refactor: Address issues raised by linterThijs Schreijer2022-03-196-35/+24
| |
* | style: Use C-style comment syntax throughout (#309)Caleb Maclennan2022-03-184-37/+38
|/ | | Co-authored-by: Denise Cullassnekuff <19711487+BlackCutpoint@users.noreply.github.com>
* Fixe an issue with aux buffer init overwriting optional parameters in ↵Paul Kulchenko2022-03-181-1/+4
| | | | | receive() (#334) Fixes use on Lua >= 5.4.3
* src/makefile: remove -DLUASOCKET_INET_PTON as current mingw builds don't want itE. Westbrook2020-03-281-1/+1
|
* wrap visibility pragmas in #ifndef _WIN32E. Westbrook2019-03-1016-17/+56
|
* src/makefile: serial += compatE. Westbrook2019-03-101-0/+1
|
* usocket: pragma visibilityE. Westbrook2019-03-102-51/+57
|
* unixstream: pragma visibilityE. Westbrook2019-03-102-5/+5
|
* unixdgram: pragma visibilityE. Westbrook2019-03-102-5/+6
|
* unix: include reorgE. Westbrook2019-03-102-4/+0
|
* udp: pragma visibilityE. Westbrook2019-03-102-6/+6
|
* timeout: pragma visibilityE. Westbrook2019-03-102-19/+30
|
* tcp: pragma visibilityE. Westbrook2019-03-102-7/+6
|
* socket.h: pragma visibilityE. Westbrook2019-03-101-30/+21
|
* serial.c: pragma visibiliityE. Westbrook2019-03-101-5/+2
|
* select: pragma visibilityE. Westbrook2019-03-102-9/+5
|
* options: pragma visibilityE. Westbrook2019-03-102-105/+145
|
* mime: include reorgE. Westbrook2019-03-102-7/+2
|
* luasocket: include centralizationE. Westbrook2019-03-102-19/+4
|
* io: pragma visibilityE. Westbrook2019-03-102-8/+7
|
* inet: pragma visibilityE. Westbrook2019-03-102-31/+25
|
* except: pragma visibilityE. Westbrook2019-03-102-9/+7
|
* compat: pragma visibilityE. Westbrook2019-03-102-9/+14
|
* buffer: pragma visibilityE. Westbrook2019-03-102-16/+14
|
* auxiliar: pragma visibilityE. Westbrook2019-03-102-22/+20
|
* Fix formatting.Diego Nehab2019-03-101-3/+3
|
* Use static initializationDiego Nehab2019-03-092-10/+145
| | | | This helps with multi-threaded apps.
* Update Windows projects vor Visual Studio 2017Diego Nehab2019-03-011-7/+43
|
* bugfix: http.lua multischeme change that got dropped during PR conflict ↵E. Westbrook2019-02-281-4/+2
| | | | resolution
* Only use EAI_OVERFLOW, AI_NUMERICSERV if definedMojca Miklavec2019-02-262-1/+6
| | | | | | | | | | | | | Some systems like Mac OS X 10.5 (and lower) do not have EAI_OVERFLOW and AI_NUMERICSERV defined. These variables are used to avoid a potentially slow name resolution for the hostname (which will always be an ip address) and for service name (which will always be an actual port number). The code might be slower, but it should still work. Closes: #242
* src/makefile: remove visibility and dllexport defines in favor of in-source ↵E. Westbrook2019-02-251-27/+12
| | | | labeling
* usocket.c: use LUASOCKET_PRIVATEE. Westbrook2019-02-251-24/+26
|
* usocket.c use LUASOCKET_PRIVATEE. Westbrook2019-02-251-28/+30
|
* unixstream.c: use LUASOCKET_PRIVATEE. Westbrook2019-02-251-2/+4
|
* unixdgram.c: use LUASOCKET_PRIVATEE. Westbrook2019-02-251-3/+6
|
* udp.c: use LUASOCKET_PRIVATEE. Westbrook2019-02-251-3/+5
|
* timeout.c: use LUASOCKET_PRIVATEE. Westbrook2019-02-251-15/+17
|
* tcp.c: use LUASOCKET_PRIVATEE. Westbrook2019-02-251-3/+6
|
* serial.c: include luasocket.hE. Westbrook2019-02-251-0/+2
|
* select.c: use LUASOCKET_PRIVATEE. Westbrook2019-02-251-2/+4
|
* options.c: use LUASOCKET_PRIVATEE. Westbrook2019-02-251-48/+46
|
* io.c: use LUASOCKET_PRIVATEE. Westbrook2019-02-251-2/+3
|
* inet.c: use LUASOCKET_PRIVATEE. Westbrook2019-02-251-12/+14
|
* except.c: use LUASOCKET_PRIVATEE. Westbrook2019-02-251-1/+3
|
* pragma.c: use LUASOCKET_PRIVATEE. Westbrook2019-02-251-2/+3
|