We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f022983 commit 4e8c029Copy full SHA for 4e8c029
mechanize/_response.py
@@ -289,6 +289,10 @@ def __copy__(self):
289
def info(self):
290
return self._headers
291
292
+ @property
293
+ def headers(self):
294
+ return self._headers
295
+
296
def geturl(self):
297
return self.wrapped.geturl()
298
@@ -334,6 +338,10 @@ def geturl(self):
334
338
335
339
336
340
341
342
343
344
337
345
346
class closeable_response:
347
"""Avoids unnecessarily clobbering urllib.addinfourl methods on .close().
@@ -392,6 +400,10 @@ def __repr__(self):
392
400
393
401
394
402
403
404
405
406
395
407
def getcode(self):
396
408
return self.code
397
409
0 commit comments