def _prepare_pre_auth_info_request(env, path, swift_source):
 newenv = make_pre_authed_env(env, 'HEAD', path, agent='Swift', query_string='', swift_source=swift_source)
 newenv.pop('HTTP_ORIGIN', None)
 newenv['swift_owner'] = True
 return Request.blank(quote(path), environ=newenv)

def _prepare_pre_auth_info_request ( env , path , swift_source ) : newenv = make_pre_authed_env ( env , 'HEAD' , path , agent = 'Swift' , query_string = '' , swift_source = swift_source ) newenv . pop ( 'HTTP_ORIGIN' , None ) newenv [ 'swift_owner' ] = True return Request . blank ( quote ( path ) , environ = newenv )
prepares a pre authed request to obtain info using a head .