Remove global PORT. Fix https redirect.

This commit is contained in:
Diego Nehab 2016-03-04 16:16:41 -03:00
parent 944305dc21
commit 5b4b915879
2 changed files with 30 additions and 19 deletions

View file

@ -112,12 +112,15 @@ the HTTP module:
</p>
<ul>
<li> <tt>PORT</tt>: default port used for connections;
<li> <tt>PROXY</tt>: default proxy used for connections;
<li> <tt>PROXY</tt>: default proxy used for connections;
<li> <tt>TIMEOUT</tt>: sets the timeout for all I/O operations;
<li> <tt>USERAGENT</tt>: default user agent reported to server.
</ul>
<p class=note id="post">
Note: These constants are global. Changing them will also
change the behavior other code that might be using LuaSocket.
</p>
<!-- http.request ++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->