Skip to content

Commit 8fd21b3

Browse files
committed
http status string can be specified
1 parent 8e20269 commit 8fd21b3

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ ext/*.log
44
ext/*.o
55
ext/*.dll
66
ext/*.bundle
7-
ext/*.so
7+
ext/*.so
8+
.idea

eventmachine_httpserver.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Gem::Specification.new do |s|
44
s.name = %q{eventmachine_httpserver}
5-
s.version = "0.2.1"
5+
s.version = "0.2.2"
66

77
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
88
s.authors = ["Francis Cianfrocca"]

eventmachine_httpserver.gemspec.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = %q{eventmachine_httpserver}
3-
s.version = "0.2.1"
3+
s.version = "0.2.2"
44

55
s.specification_version = 1 if s.respond_to? :specification_version=
66

lib/evma_httpserver/response.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module EventMachine
4949
# EventMachine::Connection.
5050
#
5151
class HttpResponse
52-
attr_accessor :status, :content, :headers, :chunks, :multiparts
52+
attr_accessor :status, :status_string, :content, :headers, :chunks, :multiparts
5353

5454
def initialize
5555
@headers = {}
@@ -111,7 +111,7 @@ def send_headers
111111
fixup_headers
112112

113113
ary = []
114-
ary << "HTTP/1.1 #{@status || 200} ...\r\n"
114+
ary << "HTTP/1.1 #{@status || 200} #{@status_string || '...'}\r\n"
115115
ary += generate_header_lines(@headers)
116116
ary << "\r\n"
117117

0 commit comments

Comments
 (0)