mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-06 18:00:28 +00:00
Restore GetPayload and GetComment for compatibility (marked as deprecated in the docs)
This commit is contained in:
parent
7c012321d6
commit
7f32b00f1a
2 changed files with 4 additions and 1 deletions
|
@ -594,7 +594,7 @@ FUNCTIONS
|
||||||
|
|
||||||
GetAssetComment(path:str) → str
|
GetAssetComment(path:str) → str
|
||||||
Returns comment text associated with asset in the ZIP central
|
Returns comment text associated with asset in the ZIP central
|
||||||
directory.
|
directory. Also available as GetComment (deprecated).
|
||||||
|
|
||||||
GetAssetMode(path:str) → int
|
GetAssetMode(path:str) → int
|
||||||
Returns UNIX-style octal mode for ZIP asset (or local file if the
|
Returns UNIX-style octal mode for ZIP asset (or local file if the
|
||||||
|
@ -606,6 +606,7 @@ FUNCTIONS
|
||||||
|
|
||||||
GetBody() → str
|
GetBody() → str
|
||||||
Returns the request message body if present or an empty string.
|
Returns the request message body if present or an empty string.
|
||||||
|
Also available as GetPayload (deprecated).
|
||||||
|
|
||||||
GetCookie(name:str) → str
|
GetCookie(name:str) → str
|
||||||
Returns cookie value.
|
Returns cookie value.
|
||||||
|
|
|
@ -5332,9 +5332,11 @@ static const luaL_Reg kLuaFuncs[] = {
|
||||||
{"FormatHttpDateTime", LuaFormatHttpDateTime}, //
|
{"FormatHttpDateTime", LuaFormatHttpDateTime}, //
|
||||||
{"FormatIp", LuaFormatIp}, //
|
{"FormatIp", LuaFormatIp}, //
|
||||||
{"GetAssetComment", LuaGetAssetComment}, //
|
{"GetAssetComment", LuaGetAssetComment}, //
|
||||||
|
{"GetComment", LuaGetAssetComment}, //
|
||||||
{"GetAssetMode", LuaGetAssetMode}, //
|
{"GetAssetMode", LuaGetAssetMode}, //
|
||||||
{"GetAssetSize", LuaGetAssetSize}, //
|
{"GetAssetSize", LuaGetAssetSize}, //
|
||||||
{"GetBody", LuaGetBody}, //
|
{"GetBody", LuaGetBody}, //
|
||||||
|
{"GetPayload", LuaGetBody}, //
|
||||||
{"GetClientAddr", LuaGetClientAddr}, //
|
{"GetClientAddr", LuaGetClientAddr}, //
|
||||||
{"GetCookie", LuaGetCookie}, //
|
{"GetCookie", LuaGetCookie}, //
|
||||||
{"GetDate", LuaGetDate}, //
|
{"GetDate", LuaGetDate}, //
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue