Skip to content

Commit

Permalink
修复302跳转后无法直连
Browse files Browse the repository at this point in the history
  • Loading branch information
tonquer committed Jun 25, 2023
1 parent f193861 commit 9daa7dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def Post(self, task):
next = r.headers.get('Location')
request.url = next
history.append(r)
self.__DealHeaders(request)
self.__DealHeaders(request, "")
else:
break
r.history = history
Expand All @@ -267,7 +267,7 @@ def Get(self, task):
next = r.headers.get('Location')
request.url = next
history.append(r)
self.__DealHeaders(request)
self.__DealHeaders(request, "")
else:
break
r.history = history
Expand Down

0 comments on commit 9daa7dd

Please sign in to comment.