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

Commit 0adc94a

Browse files
authored
Merge pull request #23 from stripe/ksun-content-type
use content_type instead of accept
2 parents 7df39ca + b675465 commit 0adc94a

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)