2
0
Эх сурвалжийг харах

Avoid getheaders() - incompatible with Python3.

Jelmer Vernooij 9 жил өмнө
parent
commit
d036356606

+ 2 - 2
dulwich/tests/compat/test_client.py

@@ -453,9 +453,9 @@ class GitHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
         ua = self.headers.get('user-agent')
         if ua:
             env['HTTP_USER_AGENT'] = ua
-        co = filter(None, self.headers.getheaders('cookie'))
+        co = self.headers.get('cookie')
         if co:
-            env['HTTP_COOKIE'] = ', '.join(co)
+            env['HTTP_COOKIE'] = co
         # XXX Other HTTP_* headers
         # Since we're setting the env in the parent, provide empty
         # values to override previously set values