Network support for the Lua language
Go to file
Julian Squires 2a76cb906c http.lua: set transfer-encoding if source and no content-length
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-22 09:38:14 +01:00
.github/workflows chore: Bump Lua version used in linter 2022-03-19 17:34:28 +03:00
doc Merge pull request #116 from linuxmaniac/master 2019-02-24 17:55:27 -03:00
etc refactor: Address issues raised by linter 2022-03-19 17:13:15 +03:00
gem refactor: Address issues raised by linter 2022-03-19 17:13:15 +03:00
rockspecs chore: Drop rockspec for never-published RC2 release 2022-03-19 18:20:52 +03:00
samples refactor: Address issues raised by linter 2022-03-19 17:13:15 +03:00
src http.lua: set transfer-encoding if source and no content-length 2022-03-22 09:38:14 +01:00
test refactor: Address issues raised by linter 2022-03-19 17:13:15 +03:00
.editorconfig chore: Include luacheck config in editorconfig setup 2022-03-19 17:28:25 +03:00
.gitignore Update to Visual Studio 2017. 2018-08-22 17:37:32 -03:00
.luacheckrc chore: Include luacheck config in editorconfig setup 2022-03-19 17:28:25 +03:00
.travis.yml Fix path for rockspec in travis file. 2013-06-13 16:40:14 +08:00
FIX Saving before big changes to support IPv6. 2011-05-25 20:57:22 +00:00
LICENSE Change 2.1 to 3.0 2013-06-14 19:16:16 +08:00
linux.cmd Merge branch 'tcp_reuseport' of https://github.com/KateAdams/luasocket into KateAdams-tcp_reuseport 2015-10-05 10:28:29 +08:00
logo.ps Adjusted a few inconsistencies with the manual. 2003-08-16 00:06:04 +00:00
ltn012.wiki fix use of arg in ltn documentation 2013-01-23 19:03:46 +01:00
ltn013.wiki fix use of arg in ltn documentation 2013-01-23 19:03:46 +01:00
Lua.props Update Windows projects vor Visual Studio 2017 2019-03-01 20:46:37 -03:00
luasocket-scm-3.rockspec chore: Move SCM rockspec to root and bump rockrel to 3 2022-03-19 18:01:53 +03:00
luasocket.sln Move Visual Studio projects to 2012. 2012-12-10 18:45:05 -02:00
macosx.cmd Make macosx.cmd generic 2018-09-29 16:29:58 -07:00
makefile Update Windows projects vor Visual Studio 2017 2019-03-01 20:46:37 -03:00
makefile.dist Add files to distribution. 2013-06-14 19:21:27 +08:00
mime.vcxproj Add src\compat.c to mime.vcxproj and socket.vcxproj 2022-03-22 09:29:04 +01:00
mingw.cmd Add MingW support. 2013-05-25 18:07:38 +08:00
NEW Update NEW file and section 2013-06-14 19:12:44 +08:00
README Change 2.1 to 3.0-rc1 2013-06-14 19:15:37 +08:00
socket.vcxproj Add src\compat.c to mime.vcxproj and socket.vcxproj 2022-03-22 09:29:04 +01:00
TODO Fix ltn12 version. 2012-12-10 15:50:44 -02:00
vc32.bat Update Windows projects vor Visual Studio 2017 2019-03-01 20:46:37 -03:00
vc64.bat Update Windows projects vor Visual Studio 2017 2019-03-01 20:46:37 -03:00
win32.cmd Update Windows projects vor Visual Studio 2017 2019-03-01 20:46:37 -03:00
win64.cmd Update Windows projects vor Visual Studio 2017 2019-03-01 20:46:37 -03:00
WISH Couple bug fixes. 2007-03-12 04:08:40 +00:00

This is the LuaSocket 3.0-rc1. It has been tested on Windows 7, Mac OS X,
and Linux. 

Please use the project page at GitHub 

    https://github.com/diegonehab/luasocket

to file bug reports or propose changes. 

Have fun,
Diego Nehab.