Skip to content

Commit

Permalink
refactor(urlbuilder): remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshkrris authored and luqven committed Oct 10, 2022
1 parent ea9ae0e commit fd085db
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions imgix/urlbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,19 +135,12 @@ def _sanitize_path(self, path, options={}):

# Encode the path without a leading forward slash,
# then add it back before returning.
# disable_path_encoding = not options["encode"]
if options["disable_path_encoding"]:
return "/" + _path
elif _path.startswith("http"):
return "/" + self._encode_proxy_path(_path)
else:
return "/" + self._encode_file_path(_path)
# if options["encode"] != False:
# if _path.startswith("http"):
# return "/" + self._encode_proxy_path(_path)
# else:
# return "/" + self._encode_file_path(_path)
# return "/" + _path

def _encode_file_path(self, path):
return quote(path, safe="/&$;=@,")
Expand Down

0 comments on commit fd085db

Please sign in to comment.