Skip to content

Commit

Permalink
Comparison should be case inensitive
Browse files Browse the repository at this point in the history
Fixes #80
  • Loading branch information
haacked committed Jan 5, 2024
1 parent ebeaf7a commit 17c5eeb
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 17c5eeb

Please sign in to comment.