~david-goetz/swift/wal_again

« back to all changes in this revision

Viewing changes to swift/common/bufferedhttp.py

  • Committer: Tarmac
  • Author(s): gholt
  • Date: 2011-05-16 20:01:59 UTC
  • mfrom: (290.1.2 python2.7compat)
  • Revision ID: tarmac-20110516200159-wscts9wcbw8f186q
Fixed Python 2.7 compatibility problem

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
    conn.putrequest(method, path)
132
132
    if headers:
133
133
        for header, value in headers.iteritems():
134
 
            conn.putheader(header, value)
 
134
            conn.putheader(header, str(value))
135
135
    conn.endheaders()
136
136
    return conn
137
137
 
164
164
    conn.putrequest(method, path)
165
165
    if headers:
166
166
        for header, value in headers.iteritems():
167
 
            conn.putheader(header, value)
 
167
            conn.putheader(header, str(value))
168
168
    conn.endheaders()
169
169
    return conn