Skip to content

Commit

Permalink
Merge pull request #93 from haacked/haacked/case-insensitive-comparison
Browse files Browse the repository at this point in the history
Comparison should be case inensitive
  • Loading branch information
haacked authored Jan 5, 2024
2 parents 97e4cde + 7b45c51 commit 692acb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 692acb5

Please sign in to comment.