Skip to content

Commit

Permalink
response text内容为空时不取绝对连接
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris committed Apr 8, 2021
1 parent e04d3df commit 2fdc965
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions feapder/network/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,9 @@ def text(self):
else:
self._cached_text = self._get_unicode_html(self.content)

self._cached_text = self._absolute_links(self._cached_text)
self._cached_text = self._del_special_character(self._cached_text)
if self._cached_text:
self._cached_text = self._absolute_links(self._cached_text)
self._cached_text = self._del_special_character(self._cached_text)

return self._cached_text

Expand Down

0 comments on commit 2fdc965

Please sign in to comment.