diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-06-14 04:29:23 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-06-14 04:29:23 +0000 |
| commit | 65c35845c54c7f84b1cf5b0e3d4c7bbdaf1014e3 (patch) | |
| tree | f6e3f1a31451281ac2a347c3080e9749456dac29 /src/http.lua | |
| parent | 8b114f3bf4ccea3b065551fa94649a9e45935b5b (diff) | |
| download | luasocket-65c35845c54c7f84b1cf5b0e3d4c7bbdaf1014e3.tar.gz luasocket-65c35845c54c7f84b1cf5b0e3d4c7bbdaf1014e3.tar.bz2 luasocket-65c35845c54c7f84b1cf5b0e3d4c7bbdaf1014e3.zip | |
Working on the manual.
Diffstat (limited to 'src/http.lua')
| -rw-r--r-- | src/http.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http.lua b/src/http.lua index 669f54d..1a7b101 100644 --- a/src/http.lua +++ b/src/http.lua | |||
| @@ -13,7 +13,7 @@ local url = require("socket.url") | |||
| 13 | local ltn12 = require("ltn12") | 13 | local ltn12 = require("ltn12") |
| 14 | local mime = require("mime") | 14 | local mime = require("mime") |
| 15 | local string = require("string") | 15 | local string = require("string") |
| 16 | local base = require("base") | 16 | local base = _G |
| 17 | local table = require("table") | 17 | local table = require("table") |
| 18 | module("socket.http") | 18 | module("socket.http") |
| 19 | 19 | ||
| @@ -25,7 +25,7 @@ TIMEOUT = 60 | |||
| 25 | -- default port for document retrieval | 25 | -- default port for document retrieval |
| 26 | PORT = 80 | 26 | PORT = 80 |
| 27 | -- user agent field sent in request | 27 | -- user agent field sent in request |
| 28 | USERAGENT = socket.VERSION | 28 | USERAGENT = socket._VERSION |
| 29 | 29 | ||
| 30 | ----------------------------------------------------------------------------- | 30 | ----------------------------------------------------------------------------- |
| 31 | -- Extra sources and sinks | 31 | -- Extra sources and sinks |
