Patch #800236: add HTTPResponse.getheaders().
diff --git a/Lib/httplib.py b/Lib/httplib.py
index c0d372f..a4102ea 100644
--- a/Lib/httplib.py
+++ b/Lib/httplib.py
@@ -493,6 +493,12 @@
             raise ResponseNotReady()
         return self.msg.getheader(name, default)
 
+    def getheaders(self):
+        """Return list of (header, value) tuples."""
+        if self.msg is None:
+            raise ResponseNotReady()
+        return self.msg.items()
+
 
 class HTTPConnection: