ht2p 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/ht2p.gemspec +2 -2
- data/lib/ht2p/client/request.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
data/ht2p.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ht2p}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jun Kikuchi"]
|
12
|
-
s.date = %q{2009-11-
|
12
|
+
s.date = %q{2009-11-21}
|
13
13
|
s.description = %q{ht2p}
|
14
14
|
s.email = %q{kikuchi@bonnou.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/ht2p/client/request.rb
CHANGED
@@ -10,8 +10,8 @@ class HT2P::Client::Request
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def send(body=nil, &block)
|
13
|
+
@header['content-length'] = body.to_s.size if body
|
13
14
|
@client.request_header(@method, @header)
|
14
|
-
@header['content-length'] = body.to_s.size
|
15
15
|
@client.write(body) if body
|
16
16
|
block.call(self) if block_given?
|
17
17
|
@client.flush
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ht2p
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jun Kikuchi
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-21 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|