fix bug in luasocket that prevents accessing pages behind varnish cache. 301 redirects are now allowed to point at self.