Skip to content

Commit 692acb5

Browse files
authored
Merge pull request #93 from haacked/haacked/case-insensitive-comparison
Comparison should be case inensitive
2 parents 97e4cde + 7b45c51 commit 692acb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ export class MvcValidationProviders {
371371
return new Promise((ok, reject) => {
372372
let request = new XMLHttpRequest();
373373

374-
if (params.type === 'Post') {
374+
if (params.type && params.type.toLowerCase() === 'post') {
375375
let postData = new FormData();
376376
for (let fieldName in fields) {
377377
postData.append(fieldName, fields[fieldName]);

0 commit comments

Comments
 (0)