fishman-eventmachine_httpserver 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/eventmachine_httpserver.gemspec +1 -1
- data/lib/evma_httpserver/response.rb +3 -1
- metadata +2 -2
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{fishman-eventmachine_httpserver}
|
5
|
-
s.version = "0.2.
|
5
|
+
s.version = "0.2.2"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Francis Cianfrocca"]
|
@@ -155,7 +155,9 @@ module EventMachine
|
|
155
155
|
elsif @multiparts
|
156
156
|
@multipart_boundary = self.class.concoct_multipart_boundary
|
157
157
|
@headers["Content-type"] = "multipart/x-mixed-replace; boundary=\"#{@multipart_boundary}\""
|
158
|
-
elsif
|
158
|
+
elsif @xhr_streaming_enable
|
159
|
+
@content = "................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................\r\n"
|
160
|
+
else
|
159
161
|
@headers["Content-length"] = 0
|
160
162
|
end
|
161
163
|
end
|