Skip to content

Commit

Permalink
Merge pull request #49 from gumgum/requestUrlEdgeCase
Browse files Browse the repository at this point in the history
Overwritting the reponse.url only if it is None
  • Loading branch information
javimol authored Mar 9, 2020
2 parents abedf50 + 543e267 commit 29fad93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion multivitamin/data/response/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@ def _init_from_request(self):
else:
log.debug("No prev_response, constructing empty response_internal")
self._response_internal = ResponseInternal()
self.url = self._request.url
if self.url is None:
self.url = self._request.url

def _init_tstamp2frameannsidx(self):
"""If there is a previous response, we want to store the tstamp 2 frame_anns idx dict
Expand Down

0 comments on commit 29fad93

Please sign in to comment.