diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..94e8e06 Binary files /dev/null and b/.DS_Store differ diff --git a/lib/apia/rack.rb b/lib/apia/rack.rb index b734afa..761617e 100644 --- a/lib/apia/rack.rb +++ b/lib/apia/rack.rb @@ -79,7 +79,7 @@ def handle_request(env, api_path) validate_api if development? - access_control_request_method = env['HTTP_ACCESS_CONTROL_REQUEST_METHOD']&.upcase + access_control_request_method = env['HTTP_ACCESS_CONTROL_REQUEST_METHOD']&.upcase if request_method == 'OPTIONS' route = find_route((access_control_request_method || request_method), api_path) if route.nil? Apia::Notifications.notify(:request_route_not_found, notify_hash)