[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaSocket HTTP module ignores URI scheme
- From: Petite Abeille <petite.abeille@...>
- Date: Wed, 23 Nov 2011 13:57:40 +0100
On Nov 23, 2011, at 12:36 PM, Alexander Gladysh wrote:
> I've just found the hard way that socket.http ignores whatever URI
> scheme in the URL.
Yep. After all, it's the http module.
> Is this intentional?
Cannot speak for Diego, but I would think so, yes.
> Can it be made to fail if the scheme is not http?
Feel free to wrap the http module inside a higher level URI one, which would then pick the right handler for a given scheme.