Removed method from params and added location.protocol.