Skip to content

Commit 9a48884

Browse files
authored
make sure we rewind before reading
1 parent ccf83d5 commit 9a48884

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)