Commit Graph

16 Commits

Author SHA1 Message Date
Ian Clarkson dc19756c1f Don't copy HTTP_VERSION from the source to the target request
Although the HTTP Version appears as a header inside `env`, it's not actually a regular header. When `extract_http_request_headers` is called, it translates the `HTTP_VERSION` "header" into a `Version` header. `Version` is only a provisionally-supported header name, and is semantically meant to represent the version of an (evolving object)[https://www.w3.org/Protocols/HTTP/Object_Headers.html#z13]. It's not correct to pass the HTTP Version as the contents of the `Version` header, so this change skips the processing of that particular header entirely.
2018-04-18 15:25:14 -07:00
empunkt d7b479a80a Fix verify_ssl option 2017-07-12 07:09:10 +02:00
joshua stein adfcc427a9 add on_connect callback, passing http object 2017-06-23 11:30:00 -05:00
James Hu 08a2f2dc0f Fix default http option 2017-03-11 22:51:11 -08:00
James Hu 27b3ba8c96 Change http_options to http 2017-03-11 22:50:36 -08:00
Avinash afc4e2664e Feature: Added attributes of Net::HTTP
To support wide variety of attributes provides by Net::HTTP class.
2017-02-28 19:29:56 +05:30
Marcos Beirigo c2f268026d Fixing Rails 5.1 warnings
Fixing the two warnings listed bellow:
 - DEPRECATION WARNING: env is deprecated and will be removed from Rails 5.1
 - DEPRECATION WARNING: `render :text` is deprecated because it does not
 actually render a `text/plain` response. Switch to `render plain: 'plain
 text'` to render as `text/plain`, `render html: '<strong>HTML</strong>'` to
 render as `text/html`, or `render body: 'raw'` to match the deprecated
 behavior and render with the default Content-Type, which is `text/plain`.
2016-10-27 09:36:51 +08:00
James Hu 1b2301a0c1 Add option to verify SSL 2016-10-11 22:11:08 -07:00
bapirex ccbd3d588d Ignore SSL cerificate validation since we're hosting on localhost anyway... 2016-10-11 14:51:40 -07:00
bapirex b027a79c42 Require addressable in client.rb and Revert gemspec 2016-09-30 08:53:49 -07:00
bapirex 7fd1c8e9a7 Use Addressable instead of URI in client.rb 2016-09-27 13:02:17 -07:00
James Hu 4fc6945f69 Explicitly require Addressable 2016-09-13 17:13:24 -07:00
Yusei Yamanaka f065acbd63 Replace the parsing cookie logic instead of cookiejar gem 2015-08-27 18:51:26 +09:00
Yusei Yamanaka 618e170f28 Use Addressable::URI#hostname instead of Addressable::URI#host 2015-08-12 00:32:08 +09:00
James Hu 083c921296 Require cookiejar 2015-06-04 23:07:43 -07:00
James Hu 08fc29d15e Rebundle and rename 2015-06-05 03:08:32 +00:00