From 7b45c51b4d6582b2ad77c2c30ac519e7dbaaafd0 Mon Sep 17 00:00:00 2001 From: Phil Haack Date: Tue, 2 Jan 2024 12:10:03 -0800 Subject: [PATCH] Comparison should be case inensitive Fixes #80 --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 7f01e8b..d79c30f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -371,7 +371,7 @@ export class MvcValidationProviders { return new Promise((ok, reject) => { let request = new XMLHttpRequest(); - if (params.type === 'Post') { + if (params.type && params.type.toLowerCase() === 'post') { let postData = new FormData(); for (let fieldName in fields) { postData.append(fieldName, fields[fieldName]);