Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | socket.http.request(): simultaneous support for http and https URL schemes, ↵ | E. Westbrook | 2019-02-24 | 1 | -19/+37 | |
| | | | | with caller-adjustable scheme-to-transport mappings (default "socket.http" and "ssl.https") | |||||
* | Merge pull request #224 from pdgendt/patch-2 | Diego Nehab | 2019-02-24 | 1 | -2/+1 | |
|\ | | | | | mime.lua: Obsolete require("io") | |||||
| * | mime.lua: Obsolete require("io") | Pieter De Gendt | 2017-09-04 | 1 | -2/+1 | |
| | | | | | | The `io` package is included but never used. | |||||
* | | Merge pull request #246 from xyida/yoda | Diego Nehab | 2019-02-24 | 1 | -2/+9 | |
|\ \ | | | | | | | Fixed an issue that was mistaken for HTTP 0.9 when timeout | |||||
| * | | Fixed an issue that was mistaken for HTTP 0.9 when timeout | xyida | 2018-04-26 | 1 | -2/+9 | |
| | | | ||||||
* | | | Merge pull request #244 from leyyer/options | Diego Nehab | 2019-02-24 | 4 | -0/+32 | |
|\ \ \ | | | | | | | | | add options: | |||||
| * | | | add options: | surenyi | 2018-03-25 | 4 | -0/+32 | |
| |/ / | | | | | | | | | | | | | | | | | | | get/set : recv-buffer-size get/set : send-buffer-size Signed-off-by: surenyi <surenyi82@163.com> | |||||
* | | | Merge pull request #116 from linuxmaniac/master | Diego Nehab | 2019-02-24 | 3 | -0/+72 | |
|\ \ \ | | | | | | | | | Add "tcp-keepidle", "tcp-keepcnt" and "tcp-keepintvl" options | |||||
| * | | | Add "tcp-keepidle", "tcp-keepcnt" and "tcp-keepintvl" options | Victor Seva | 2014-12-05 | 3 | -0/+72 | |
| | | | | ||||||
* | | | | Merge pull request #258 from ewestbrook/luasec117 | Diego Nehab | 2019-02-24 | 1 | -6/+14 | |
|\ \ \ \ | | | | | | | | | | | http.lua: if default for scheme, omit port number in "Host:" header | |||||
| * | | | | http.lua: if default for scheme, omit port number in "Host:" header | E. Westbrook | 2019-02-20 | 1 | -6/+14 | |
| | | | | | ||||||
* | | | | | Merge pull request #265 from ewestbrook/dualincpaths | Diego Nehab | 2019-02-24 | 1 | -12/+12 | |
|\ \ \ \ \ | | | | | | | | | | | | | src/makefile: support both lua/$(LUAV) and lua$(LUAV) include paths | |||||
| * | | | | | src/makefile: support both lua/$(LUAV) and lua$(LUAV) include paths | E. Westbrook | 2019-02-22 | 1 | -12/+12 | |
| |/ / / / | ||||||
* | | | | | Merge pull request #266 from siffiejoe/luajit-static-linking | Diego Nehab | 2019-02-24 | 1 | -0/+2 | |
|\ \ \ \ \ | | | | | | | | | | | | | Fix static linking problem with LuaJIT | |||||
| * | | | | | Fix static linking problem with LuaJIT | Philipp Janda | 2019-02-23 | 1 | -0/+2 | |
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LuaJIT and LuaSocket both define new Lua APIs from Lua 5.2 (in particular `luaL_setfuncs` and `luaL_testudata`). When linking both statically, the one definition rule strikes and linking fails. This commit fixes the issue by renaming the LuaSocket versions of those functions behind the scenes using the C preprocessor. Closes #214 | |||||
* / / / / | http.lua: allow override of hard-coded 5 max redirects | E. Westbrook | 2019-02-23 | 1 | -1/+4 | |
|/ / / / | ||||||
* | | | | Merge pull request #264 from ewestbrook/freebsd-unix-bind-connect | Diego Nehab | 2019-02-19 | 1 | -15/+12 | |
|\ \ \ \ | | | | | | | | | | | src/unixdgram.c: fix connect() and bind() on FreeBSD | |||||
| * | | | | Use SUN_LEN macro | E. Westbrook | 2019-02-19 | 1 | -2/+8 | |
| | | | | | ||||||
| * | | | | src/unixdgram.c: allow connect() and bind() on freebsd without dummy char, ↵ | E. Westbrook | 2019-02-19 | 1 | -15/+6 | |
| | | | | | | | | | | | | | | | | | | | | and simplify calculations | |||||
* | | | | | src/makefile: define UNIX_HAS_SUN_LEN for FreeBSD builds | E. Westbrook | 2019-02-19 | 1 | -2/+2 | |
|/ / / / | ||||||
* | | | | Update to Visual Studio 2017. | Diego Nehab | 2018-08-22 | 4 | -5/+5 | |
| | | | | ||||||
* | | | | url.lua:remove_dot_components(): avoid ambiguous numeric representation as ↵ | E. Westbrook | 2018-08-21 | 1 | -2/+3 | |
| | | | | | | | | | | | | | | | | empty-path-segment marker | |||||
* | | | | url.lua:remove_dot_components(): use temporary NUL marker to reduce ↵ | E. Westbrook | 2018-08-21 | 1 | -2/+3 | |
| | | | | | | | | | | | | | | | | empty-segment special-case code | |||||
* | | | | url.lua:remove_dot_components(): empty path component double-dot corner case | E. Westbrook | 2018-08-21 | 1 | -0/+4 | |
| | | | | ||||||
* | | | | url.lua:absolute_path(): ensure a separator between base_path and relative_path | E. Westbrook | 2018-08-21 | 1 | -0/+1 | |
| | | | | ||||||
* | | | | url.lua:remove_dot_components(): avoid overconsuming dot segments | E. Westbrook | 2018-08-21 | 1 | -2/+2 | |
| | | | | ||||||
* | | | | url.lua:remove_dot_components(): limit beginning-of-string double-dot corner ↵ | E. Westbrook | 2018-08-21 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | case to prevent triple-dot activation and authority collision | |||||
* | | | | url.lua: separate remove_dot_components() from absolute_path(); also use in ↵ | E. Westbrook | 2018-08-21 | 1 | -17/+34 | |
| | | | | | | | | | | | | | | | | _M.absolute() even when not merging | |||||
* | | | | url.lua:absolute_path(): fix issue #254, simplify, add more test cases | E. Westbrook | 2018-08-19 | 1 | -14/+12 | |
| | | | | ||||||
* | | | | Fix gcc-8.1.0 warning. | Joris Clement | 2018-08-06 | 1 | -0/+1 | |
| | | | | ||||||
* | | | | Merge pull request #250 from ewestbrook/testudata-compat | Diego Nehab | 2018-06-05 | 3 | -1/+20 | |
|\ \ \ \ | | | | | | | | | | | Update auxiliar.c to use luaL_testudata (#249), now with Lua 5.1 compatibility | |||||
| * | | | | src/compat.c: provide luaL_testudata() for use by auxiliar.c under Lua 5.1 | E. Westbrook | 2018-06-04 | 2 | -0/+19 | |
| | | | | | ||||||
| * | | | | Update auxiliar.c | George Zhao | 2018-06-03 | 1 | -1/+1 | |
| | |/ / | |/| | | ||||||
* / | | | Add ltn12.source.table() | E. Westbrook | 2018-06-05 | 1 | -0/+10 | |
|/ / / | ||||||
* | | | src/options.c: increase buffer from 45 to 57, to accommodate string sizes ↵ | E. Westbrook | 2017-12-22 | 1 | -2/+2 | |
| | | | | | | | | | | | | specified (detected by gcc7's -Wstringpop-overflow) | |||||
* | | | fixed url parsing; postpone fragment parsing after authority parsing; added ↵ | Herbert Leuwer | 2017-11-22 | 1 | -5/+5 | |
| | | | | | | | | | | | | | | | | | | test cases to test/urltest.lua fixed reference patterns in check_protect() to upper case hex letters | |||||
* | | | fixed URL parsing in url.lua: parse fragment after parsing username and ↵ | Herbert Leuwer | 2017-11-19 | 1 | -5/+5 | |
| |/ |/| | | | | | password. | |||||
* | | Fix typo | Elliptica | 2017-04-17 | 1 | -1/+1 | |
| | | ||||||
* | | Merge pull request #210 from Lord-Helmchen/patch-1 | Diego Nehab | 2017-03-20 | 1 | -2/+2 | |
|\ \ | | | | | | | make protect_segment in url.lua rfc compliant | |||||
| * | | correct typo | LordHelmchen | 2017-03-16 | 1 | -1/+1 | |
| | | | ||||||
| * | | make protect_segment in url.lua rfc compliant | LordHelmchen | 2017-03-16 | 1 | -1/+1 | |
| | | | | | | | | | | | | percent-encode uppercase see https://tools.ietf.org/html/rfc3986#section-6.2.2 | |||||
* | | | Preserve path when parsing urls. | Diego Nehab | 2017-03-20 | 1 | -2/+3 | |
| | | | ||||||
* | | | Fix issue #196 | Diego Nehab | 2017-03-20 | 1 | -0/+1 | |
| | | | ||||||
* | | | fix for Lua 5.3 built without number / string conversion | François Perrad | 2017-03-16 | 1 | -1/+1 | |
|/ / | | | | | | | | | | | This kind of Lua could be built with this command: ``` hererocks --lua 5.3 --cflags="-DLUA_NOCVTN2S -DLUA_NOCVTS2N" ``` | |||||
* | | Add backwards compatibility wrappers for socket.unix | Courtney Bane | 2017-01-25 | 1 | -5/+45 | |
| | | | | | | | | | | | | Add backwards compatibility aliases "tcp" and "udp" for the recently renamed "stream" and "dgram" functions, as well as a wrapper function and metatable setup so that socket.unix() calls socket.unix.stream(). | |||||
* | | Create socket on first sendto if family agnostic udp() was used | Natanael Copa | 2017-01-25 | 1 | -0/+21 | |
| | | | | | | | | | | | | | | Create socket and set family on first sendto() if udp() was created without address family. Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> | |||||
* | | rename unix.tcp to unix.stream, unix.udp to unix.dgram | enginix | 2016-12-25 | 7 | -124/+124 | |
| | | ||||||
* | | allow DESTDIR to be set from the environment | Mike Usenko | 2016-11-08 | 1 | -1/+1 | |
| | | ||||||
* | | add getsockname api for unix {udp,tcp} socket | enginix | 2016-07-22 | 2 | -0/+36 | |
| | | ||||||
* | | fix unixudp object checking issue | enginix | 2016-07-04 | 1 | -2/+2 | |
| | |