We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 97e4cde + 7b45c51 commit 692acb5Copy full SHA for 692acb5
src/index.ts
@@ -371,7 +371,7 @@ export class MvcValidationProviders {
371
return new Promise((ok, reject) => {
372
let request = new XMLHttpRequest();
373
374
- if (params.type === 'Post') {
+ if (params.type && params.type.toLowerCase() === 'post') {
375
let postData = new FormData();
376
for (let fieldName in fields) {
377
postData.append(fieldName, fields[fieldName]);
0 commit comments