Skip to content
This repository has been archived by the owner on Feb 28, 2019. It is now read-only.

Commit

Permalink
[fix] encode_mirror_url: add #fragment
Browse files Browse the repository at this point in the history
fix missing fragment issue of 302 jump
  • Loading branch information
zjuchenyuan committed Jul 3, 2018
1 parent c0eba93 commit a7827fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zmirror/zmirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit a7827fe

Please sign in to comment.