Skip to content
Myr

Don't alter behavior for safe methods anymore.

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 · parent 97e3c84 · Browse files · 1 file+11 added−11 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+11 added−11 removed

  • other:+11 added−11 removed

1 file+11 added−11 removed

modified:requests/models.py+11 added-11 removed
330 unmodified lines
331 datetime.now().isoformat(), self.method, self.url332 ))333334335 # Build the URL336 url = self._build_url()336 if self.method in ('GET', 'HEAD', 'DELETE'):337 req = _Request(url, method=self.method)338 else:337340 if self.files:341 register_openers()338343 if self.data:344 self.files.update(self.data)339 if self.files:340 register_openers()341346 datagen, headers = multipart_encode(self.files)347 req = _Request(url, data=datagen, headers=headers, method=self.method)342 if self.data:343 self.files.update(self.data)344349 else:350 req = _Request(url, data=self._enc_data, method=self.method)345 datagen, headers = multipart_encode(self.files)346 req = _Request(url, data=datagen, headers=headers, method=self.method)347348 else:349 req = _Request(url, data=self._enc_data, method=self.method)350351352 if self.headers:353 for k,v in self.headers.iteritems():354 req.add_header(k, v)355
340 unmodified lines