Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Commit b675465

Browse files
committed
change
1 parent d85ed7a commit b675465

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
authenticate!
3636
# Get the credit card details submitted
3737
payload = params
38-
if request.accept? 'application/json' and params.empty?
38+
if request.content_type.include? 'application/json' and params.empty?
3939
payload = indifferent_params(JSON.parse(request.body.read))
4040
end
4141

0 commit comments

Comments
 (0)