Skip to content

Commit

Permalink
return raw http object if raw
Browse files Browse the repository at this point in the history
  • Loading branch information
maccman committed Oct 16, 2010
1 parent 5ea0ef6 commit ca04d96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/nestful/request.rb
Expand Up @@ -100,8 +100,9 @@ def decoded(result)
data.rewind
data
else
return result if raw
data = result.body
(format && !raw) ? format.decode(data) : data
format ? format.decode(data) : data
end
end

Expand Down

0 comments on commit ca04d96

Please sign in to comment.