Skip to content
Myr

Merge branch 'develop' of https://github.com/darkrho/requests into develop

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parents cfefcab, 89241c5 · Browse files · 1 file+8 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−2 removed

  • other:+8 added−2 removed

1 file+8 added−2 removed

modified:requests/models.py+8 added-2 removed
369 unmodified lines
370 except AttributeError:371 fields = dict(self.data)372373 for (k, v) in self.files.items():374 # support for explicit filename375 if isinstance(v, (tuple, list)):376 fn, fp = v377 else:378 fn = guess_filename(v) or k379 fp = v374 fields.update({k: (guess_filename(k) or k, v.read())})380 fields.update({k: (fn, fp.read())})381382 (body, content_type) = encode_multipart_formdata(fields)383 else:384 pass
45 unmodified lines
430 for (k, v) in self.cookies.items():431 c[k] = v432433 # Turn it into a header.428 cookie_header = c.output(header='').strip()434 cookie_header = c.output(header='', sep='; ').strip()435436 # Attach Cookie header to request.437 self.headers['Cookie'] = cookie_header438
186 unmodified lines