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

Commit 09dbcfa

Browse files
Fix calling include on nil (#62)
1 parent 3c368f8 commit 09dbcfa

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
@@ -130,7 +130,7 @@ def authenticate!
130130
# to prevent misuse
131131
post '/create_setup_intent' do
132132
payload = params
133-
if request.content_type.include? 'application/json' and params.empty?
133+
if request.content_type != nil and request.content_type.include? 'application/json' and params.empty?
134134
payload = Sinatra::IndifferentHash[JSON.parse(request.body.read)]
135135
end
136136
begin

0 commit comments

Comments
 (0)