Permalink
Browse files

[fix] encode_mirror_url: add #fragment

fix missing fragment issue of 302 jump
  • Loading branch information...
zjuchenyuan committed Jul 3, 2018
1 parent c0eba93 commit a7827fe1749777ad33a5f7666158d6460790cf11
Showing with 3 additions and 0 deletions.
  1. +3 −0 zmirror/zmirror.py
@@ -749,6 +749,9 @@ def encode_mirror_url(raw_url_or_path, remote_domain=None, is_scheme=None, is_es

result = urljoin(our_prefix + middle_part + '/',
extract_url_path_and_query(_raw_url_or_path).lstrip('/'))
if sp.fragment:
result += "#"+sp.fragment

if is_escape:
result = s_esc(result)

0 comments on commit a7827fe

Please sign in to comment.