Skip to content

Commit d84cae7

Browse files
authored
Merge pull request #41 from travis-ci/joshk-body-rewind
make sure we rewind before reading
2 parents ccf83d5 + 9a48884 commit d84cae7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/travis/listener/app.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,10 @@ def payload
219219
end
220220

221221
def request_body
222-
@_request_body ||= request.body.read
222+
@_request_body ||= begin
223+
request.body.rewind
224+
request.body.read
225+
end
223226
end
224227

225228
def slug

0 commit comments

Comments
 (0)