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

5 commits

Author SHA1 Message Date
Andy Brody
d554909ef9 Add a more descriptive rest-client user agent.
Identify ourselves as rest-client and also include system architecture
and ruby / ruby engine version information.

For example:

    User-Agent: rest-client/1.7.2 (linux-gnu x86_64) ruby/1.9.3p550

    User-Agent: rest-client/1.7.2 (linux x86_64) jruby/1.7.9 (1.9.3p392)
2014-11-02 18:24:09 -08:00
Andy Brody
39ef456279 Rename Platform.mac? to .mac_mri? for clarity.
This better reflects the fact that the method is expected to return
false on non-MRI engines even on OS X.
2014-11-02 18:32:04 -08:00
Andy Brody
9815fddcf3 Expose setting net/http SSL verify_callback.
This is helpful for users wanting to apply their own custom certificate
verification logic. Add warnings by default if it is used on OS X or
jruby, which may not support the functionality as expected.
2014-04-09 17:42:44 -07:00
Andy Brody
4dbaf7e604 Move windows? method into Platform module. 2014-04-03 14:05:18 -07:00
Andy Brody
902db106a6 Disable failing OS X tests.
Apple patches OpenSSL to always fall back on the system CA store, so
the integration tests that expect SSL cert failures have never worked on
OS X. Disable them since I can't think of a workaround :-(.

TODO: add some integration tests on certificates that won't be in any
system CA store.
2014-04-03 14:05:18 -07:00