if (!preg_match('%' . $headerConfig['value'] . '%', $currentValue, $matches)) {
34
throw new ValidationFailedException('Header "' . $headerConfig['key'] . '" does not match "' . $headerConfig['value'] . '". Current value is "' . $currentValue . '"');