excon 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of excon might be problematic. Click here for more details.

@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'excon'
16
- s.version = '0.1.1'
17
- s.date = '2010-06-19'
16
+ s.version = '0.1.2'
17
+ s.date = '2010-06-23'
18
18
  s.rubyforge_project = 'excon'
19
19
 
20
20
  ## Make sure your summary is short. The description may be as long
@@ -16,7 +16,7 @@ require 'excon/response'
16
16
  module Excon
17
17
 
18
18
  unless const_defined?(:VERSION)
19
- VERSION = '0.1.1'
19
+ VERSION = '0.1.2'
20
20
  end
21
21
 
22
22
  CHUNK_SIZE = 1048576 # 1 megabyte
@@ -27,16 +27,15 @@ module Excon
27
27
  request << " HTTP/1.1\r\n"
28
28
  params[:headers] ||= @connection[:headers]
29
29
  params[:headers]['Host'] ||= params[:host] || @connection[:host]
30
- unless params[:headers]['Content-Length']
31
- params[:headers]['Content-Length'] = (params[:body] && params[:body].length) || 0
32
- end
30
+ params[:body] ||= @connection[:body]
31
+ params[:headers]['Content-Length'] = (params[:body] && params[:body].length) || 0
33
32
  for key, value in params[:headers]
34
33
  request << "#{key}: #{value}\r\n"
35
34
  end
36
35
  request << "\r\n"
37
36
  socket.write(request)
38
37
 
39
- if params[:body] ||= @connection[:body]
38
+ if params[:body]
40
39
  if params[:body].is_a?(String)
41
40
  socket.write(params[:body])
42
41
  else
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - geemus (Wesley Beary)
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-19 00:00:00 -07:00
17
+ date: 2010-06-23 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies: []
20
20