1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00
Commit graph

10 commits

Author SHA1 Message Date
Pedro Chambino
a200e4facf Calling Payload::Base.to_s returns empty on the second call 2014-04-01 19:46:20 +01:00
Andy Brody
39a0034c3e Fix test failures and deprecation warnings. 2014-03-12 15:49:21 -07:00
Andy Brody
8f021b158b Merge pull request #128 from jeremy/nil-timeout
Disable timeouts by setting :timeout => nil or :open_timeout => nil

Merge remote-tracking branch 'jeremy/nil-timeout' into 1.7.x

Conflicts:
	lib/restclient/request.rb
2014-03-12 15:45:08 -07:00
Jeffrey Hardy
425596a847 Test that raw responses are read into a binary-mode tempfile
Re: https://github.com/rest-client/rest-client/pull/110
2014-03-12 12:58:01 -04:00
Andy Brody
e99defb99b Merge pull request #261 from gottfrois/fix_209_rescue_errno_etimedout
Rescue Errno::ETIMEDOUT exception. Fixes #209
2014-03-06 23:27:34 -08:00
Andy Brody
825f5bb8b2 Do some sanity checks on cookie names and values.
Validate that cookie names and values don't flagrantly violate RFC 6265
by containing things like control characters or ';'. This will help
prevent users from accidentally breaking boundaries of cookies or the
cookie header.

If you really want to send scary characters, you can set the Cookie
header directly.
2014-03-06 23:20:05 -08:00
Andy Brody
3c95dbd45c Do not CGI.unescape cookies sent in requests.
It isn't appropriate to call CGI.unescape on cookie values: any URI
encoding performed by servers on cookies should remain that way to avoid
sending invalid characters in the Cookie request HTTP header. (e.g. If
you send a cookie containing '%0A', it should send those three octets,
not a newline character.)

Fixes #89
2014-03-06 22:53:27 -08:00
Andy Brody
3dead16474 Add a test on the version number.
This is pretty dumb, but at least it would prevent another 0.0.0
regression.
2014-03-06 18:31:38 -08:00
Pierre-Louis Gottfrois
04640e8ba0 Rescue Errno::ETIMEDOUT exception. Fixes #209 2014-02-17 16:07:53 +01:00
Larry Gilbert
d7a11503af Reorganize specs
* Put unit and integration specs into separate subdirectories
* Consolidate all requires of 'webmock/rspec' into spec_helper.rb
* Use WebMock.{disable!,enable!} for specs calling live server
2013-08-30 18:45:06 -07:00