diff --git a/package-lock.json b/package-lock.json index 0106e608..c6a6ac21 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16717,8 +16717,7 @@ }, "balanced-match": { "version": "1.0.0", - "bundled": true, - "optional": true + "bundled": true }, "brace-expansion": { "version": "1.1.11", @@ -16739,8 +16738,7 @@ }, "concat-map": { "version": "0.0.1", - "bundled": true, - "optional": true + "bundled": true }, "console-control-strings": { "version": "1.1.0", diff --git a/src/semantics/actions/validatorActions.js b/src/semantics/actions/validatorActions.js index 80169e95..23b6aa04 100644 --- a/src/semantics/actions/validatorActions.js +++ b/src/semantics/actions/validatorActions.js @@ -1,4 +1,4 @@ -import { apiURLs, jsonRequest, validationFormRequest } from '../config/apiURLs' +import { apiURLs, jsonRequest } from '../config/apiURLs' const requestValidatorsListPending = response => ({ type: 'REQUEST_VALIDATORS_LIST_PENDING' @@ -41,10 +41,12 @@ export const requestValidatorsList = () => dispatch => export const requestServerValidation = formData => dispatch => new Promise(() => dispatch(requestServerValidationPending())).then( fetch( - `${apiURLs.semanticValidator}/validate`, - validationFormRequest(formData) - ) - .then( + `${apiURLs.semanticValidator}/validate`,{ + method: "POST", + body: formData + } + //validationFormRequest(formData) + ).then( response => response.ok ? response diff --git a/src/semantics/config/apiURLs.js b/src/semantics/config/apiURLs.js index 4c963c54..e80f00c7 100644 --- a/src/semantics/config/apiURLs.js +++ b/src/semantics/config/apiURLs.js @@ -19,7 +19,7 @@ export const jsonRequest = { cache: "no-cache" }; -export const validationFormRequest = formData => ({ +/* export const validationFormRequest = formData => ({ method: "POST", body: formData -}); +}); */