Skip to content

Commit

Permalink
Avoid getheaders() - incompatible with Python3.
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer committed Apr 13, 2016
1 parent f8856c0 commit d036356
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dulwich/tests/compat/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,9 +453,9 @@ def run_backend(self):
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
Expand Down

0 comments on commit d036356

Please sign in to comment.