File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -190,9 +190,7 @@ module HTTP
190
190
elsif request . method == 'GET'
191
191
expect ( request . body ) . to be_nil
192
192
193
- ::Protocol ::HTTP ::Response [ 200 , {
194
- 'remote-address' => request . remote_address . inspect
195
- } , [ "#{ request . method } #{ request . version } " ] ]
193
+ ::Protocol ::HTTP ::Response [ 200 , { 'my-header' => 'my-value' } , [ "#{ request . method } #{ request . version } " ] ]
196
194
else
197
195
::Protocol ::HTTP ::Response [ 200 , { } , [ "Hello World" ] ]
198
196
end
@@ -276,8 +274,8 @@ def after
276
274
tempfile . close
277
275
end
278
276
279
- it "has remote-address header" do
280
- expect ( response . headers [ 'remote-address ' ] ) . not . to be_nil
277
+ it "has response header" do
278
+ expect ( response . headers [ 'my-header ' ] ) . to be == 'my-value'
281
279
end
282
280
283
281
it "has protocol version" do
You can’t perform that action at this time.
0 commit comments