technoweenie/faraday — pull request #104 by jiren (2011-12-30 09:04:32+00:00)
Title: GET method with body using 'net_http' adapter

Currently in Faraday::Adapter::NetHttp 'GET' method call using 'http.get'. So we can not call get request with body.

So I tweak code to call get request with body, for this check env[:body] is present or not if present then make Net::HTTPGenericRequest and call as like other request(:put, :post etc) otherwise call as it is using 'http.get'.

Sample code:

```ruby
conn = Faraday.new(:url => 'http://localhost:4567')
res = conn.get do |req|
req.url '/get/body'
req.body = "{hello: world}"
end
```