Removed request.build_absolute_uri() as it does not respect protocol