Skip to content

Commit

Permalink
Work around for odd CURL output getting in request params
Browse files Browse the repository at this point in the history
  • Loading branch information
jolzee committed Apr 18, 2020
1 parent 49fc992 commit 33400c7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/store.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-disable no-unused-vars */
import "regenerator-runtime/runtime";
const logger = require("@/utils/logging").getLogger("store.js");
const replaceString = require("replace-string");
const TIE = require("leopard-tie-client");
import {
doesParameterExist,
Expand Down Expand Up @@ -1675,6 +1676,8 @@ function storeSetup(vuetify) {
context.getters.timeZoneParam +
context.getters.ctxParameters;

queryParams = replaceString(queryParams, "CURL_CONNECT_TIMEOUT", "");

let queryObj = queryParamStringAsObject(queryParams);
queryObj.command = "feedback";
queryObj.text = ""; // it's a login we don't have to say anything yet
Expand Down Expand Up @@ -1941,6 +1944,8 @@ function storeSetup(vuetify) {
context.getters.ctxParameters +
context.getters.locationInfo;

queryParams = replaceString(queryParams, "CURL_CONNECT_TIMEOUT", "");

let queryObj = queryParamStringAsObject(queryParams);
queryObj.command = "login";
queryObj.text = ""; // it's a login we don't have to say anything yet
Expand Down Expand Up @@ -2096,6 +2101,8 @@ function storeSetup(vuetify) {
context.getters.timeZoneParam +
context.getters.ctxParameters;

queryParams = replaceString(queryParams, "CURL_CONNECT_TIMEOUT", "");

let queryObj = queryParamStringAsObject(queryParams);
queryObj.text = currentUserInput.trim();

Expand Down

0 comments on commit 33400c7

Please sign in to comment.