Skip to content

Commit 6c42716

Browse files
committed
fix
1 parent 1d95a12 commit 6c42716

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: httpdbg/records.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -363,10 +363,11 @@ def get_socket_data(
363363

364364
if id(obj) in self._sockets:
365365
socketdata = self._sockets[id(obj)]
366-
if request and socketdata.record and socketdata.record.is_client:
366+
if request:
367367
if (
368368
socketdata
369369
and socketdata.record
370+
and socketdata.record.is_client
370371
and socketdata.record.response.rawdata
371372
):
372373
# the socket is reused for a new request

0 commit comments

Comments
 (0)