Skip to content

Commit

Permalink
Replace new localhost occurences with 127.0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinroger committed Jan 19, 2022
1 parent 6cab99d commit ffb7edc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion spec/Idempotency.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ describe('Idempotency', () => {
});
const params = {
method: 'POST',
url: 'http://localhost:8378/1/functions/myFunction',
url: 'http://127.0.0.1:8378/1/functions/myFunction',
headers: {
'X-Parse-Application-Id': Parse.applicationId,
'X-Parse-Master-Key': Parse.masterKey,
Expand Down
10 changes: 5 additions & 5 deletions spec/schemas.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ describe('schemas', () => {
it('ensure refresh cache after creating a class', async done => {
spyOn(SchemaController.prototype, 'reloadData').and.callFake(() => Promise.resolve());
await request({
url: 'http://localhost:8378/1/schemas',
url: 'http://127.0.0.1:8378/1/schemas',
method: 'POST',
headers: masterKeyHeaders,
json: true,
Expand All @@ -252,7 +252,7 @@ describe('schemas', () => {
},
});
const response = await request({
url: 'http://localhost:8378/1/schemas',
url: 'http://127.0.0.1:8378/1/schemas',
method: 'GET',
headers: masterKeyHeaders,
json: true,
Expand Down Expand Up @@ -1559,7 +1559,7 @@ describe('schemas', () => {
spyOn(config.schemaCache, 'del').and.callFake(() => {});
spyOn(SchemaController.prototype, 'reloadData').and.callFake(() => Promise.resolve());
await request({
url: 'http://localhost:8378/1/schemas',
url: 'http://127.0.0.1:8378/1/schemas',
method: 'POST',
headers: masterKeyHeaders,
json: true,
Expand All @@ -1569,12 +1569,12 @@ describe('schemas', () => {
});
await request({
method: 'DELETE',
url: 'http://localhost:8378/1/schemas/A',
url: 'http://127.0.0.1:8378/1/schemas/A',
headers: masterKeyHeaders,
json: true,
});
const response = await request({
url: 'http://localhost:8378/1/schemas',
url: 'http://127.0.0.1:8378/1/schemas',
method: 'GET',
headers: masterKeyHeaders,
json: true,
Expand Down
2 changes: 1 addition & 1 deletion src/Controllers/LoggerController.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class LoggerController extends AdaptableController {
}

maskSensitiveUrl(path) {
const urlString = 'http://localhost' + path; // prepend dummy string to make a real URL
const urlString = 'http://127.0.0.1' + path; // prepend dummy string to make a real URL
const urlObj = new URL(urlString);
const query = urlObj.searchParams;
let sanitizedQuery = '?';
Expand Down

0 comments on commit ffb7edc

Please sign in to comment.