Skip to content

Commit b9c6856

Browse files
committed
force the encoding
emojis trick ruby into thinking the body is ASCII which causes encoding errors which sidekiq jsons up the payload
1 parent d84cae7 commit b9c6856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/travis/listener/app.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def payload
221221
def request_body
222222
@_request_body ||= begin
223223
request.body.rewind
224-
request.body.read
224+
request.body.read.force_encoding("utf-8")
225225
end
226226
end
227227

0 commit comments

Comments
 (0)