lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

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.