aboutsummaryrefslogtreecommitdiff
path: root/docs/tcp.html (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-03-23Update URL references to source repositoryCaleb Maclennan2-5/+5
2022-03-23Move doc→docs so we can serve it with GitHub PagesCaleb Maclennan19-20/+20
2022-03-22fix(docs) references to some constants added (#359)Thijs Schreijer2-4/+10
2022-03-22fix(docs) fix html linter issues in the docs (#358)Thijs Schreijer11-934/+938
2022-03-22http.lua: set transfer-encoding if source and no content-lengthJulian Squires1-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.
2022-03-22Add src\compat.c to mime.vcxproj and socket.vcxprojE. Westbrook2-0/+2
2022-03-21src/ltn12.lua: remove duplicated codesdavid1-3/+3
2022-03-19chore: Drop rockspec for never-published RC2 releaseCaleb Maclennan1-134/+0