em-http-server 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
11
11
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
12
12
  gem.name = "em-http-server"
13
13
  gem.require_paths = ["lib"]
14
- gem.version = "0.1.4"
14
+ gem.version = "0.1.5"
15
15
 
16
16
  gem.add_runtime_dependency "eventmachine"
17
17
  end
@@ -142,7 +142,7 @@ module EventMachine
142
142
  #
143
143
  def fixup_headers
144
144
  if @content
145
- @headers["Content-length"] = @content.to_s.length
145
+ @headers["Content-length"] = content.to_s.bytesize
146
146
  elsif @chunks
147
147
  @headers["Transfer-encoding"] = "chunked"
148
148
  # Might be nice to ENSURE there is no content-length header,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: em-http-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-17 00:00:00.000000000 Z
12
+ date: 2012-12-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine
16
- requirement: &70355268587760 !ruby/object:Gem::Requirement
16
+ requirement: &70104281348040 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70355268587760
24
+ version_requirements: *70104281348040
25
25
  description: Simple http server for eventmachine
26
26
  email:
27
27
  - alberto.ornaghi@gmail.com