Skip to content

Commit

Permalink
fix tests. should return the old response
Browse files Browse the repository at this point in the history
  • Loading branch information
godfat committed Dec 3, 2014
1 parent e015a85 commit 948207f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rest-core/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ def give_promise response
self.class.give_promise(weak_promise)
self.class.give_promise(weak_promise, promises, mutex)
end

response
end

def build_env env={}
Expand Down
1 change: 1 addition & 0 deletions test/test_follow_redirect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
def call env
yield(env.merge(RC::RESPONSE_STATUS => status,
RC::RESPONSE_HEADERS => {'LOCATION' => 'location'}))
env
end
end.new
app = RC::FollowRedirect.new(dry, 1)
Expand Down

0 comments on commit 948207f

Please sign in to comment.