Added secure_path function in http module.