http: assorted fixed to make luacheck happy

28 jobs for http-sockets
in 5 minutes and 51 seconds and was queued for 5 seconds