[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: LuaSocket HTTP module ignores URI scheme
- From: Bertrand Mansion <lua@...>
- Date: Wed, 23 Nov 2011 13:23:18 +0100
On Wed, Nov 23, 2011 at 12:36 PM, Alexander Gladysh <email@example.com> wrote:
> Hi, list!
> I've just found the hard way that socket.http ignores whatever URI
> scheme in the URL. Is this intentional? Can it be made to fail if the
> scheme is not http?
What about https and other weird scheme names using http.
I think http is considered a protocol, not a scheme.
You should probably check the scheme of your uri in your code first.
I have just made public an URL parser/builder/Normalizer for Lua :
(Warning, I still have some improvements to do on it...)