Fixed edge cases. https can be passed.