From 543e267cea0e010a58d36a6d2966c63f8100a43f Mon Sep 17 00:00:00 2001 From: Javier Molina Date: Mon, 9 Mar 2020 10:19:08 -0700 Subject: [PATCH] Overwritting the reponse.url only if it is None --- multivitamin/data/response/response.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/multivitamin/data/response/response.py b/multivitamin/data/response/response.py index f9bf580..7f34879 100644 --- a/multivitamin/data/response/response.py +++ b/multivitamin/data/response/response.py @@ -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