Skip to content

Commit ffb7edc

Browse files
committed
Replace new localhost occurences with 127.0.0.1
1 parent 6cab99d commit ffb7edc

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

spec/Idempotency.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ describe('Idempotency', () => {
103103
});
104104
const params = {
105105
method: 'POST',
106-
url: 'http://localhost:8378/1/functions/myFunction',
106+
url: 'http://127.0.0.1:8378/1/functions/myFunction',
107107
headers: {
108108
'X-Parse-Application-Id': Parse.applicationId,
109109
'X-Parse-Master-Key': Parse.masterKey,

spec/schemas.spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ describe('schemas', () => {
243243
it('ensure refresh cache after creating a class', async done => {
244244
spyOn(SchemaController.prototype, 'reloadData').and.callFake(() => Promise.resolve());
245245
await request({
246-
url: 'http://localhost:8378/1/schemas',
246+
url: 'http://127.0.0.1:8378/1/schemas',
247247
method: 'POST',
248248
headers: masterKeyHeaders,
249249
json: true,
@@ -252,7 +252,7 @@ describe('schemas', () => {
252252
},
253253
});
254254
const response = await request({
255-
url: 'http://localhost:8378/1/schemas',
255+
url: 'http://127.0.0.1:8378/1/schemas',
256256
method: 'GET',
257257
headers: masterKeyHeaders,
258258
json: true,
@@ -1559,7 +1559,7 @@ describe('schemas', () => {
15591559
spyOn(config.schemaCache, 'del').and.callFake(() => {});
15601560
spyOn(SchemaController.prototype, 'reloadData').and.callFake(() => Promise.resolve());
15611561
await request({
1562-
url: 'http://localhost:8378/1/schemas',
1562+
url: 'http://127.0.0.1:8378/1/schemas',
15631563
method: 'POST',
15641564
headers: masterKeyHeaders,
15651565
json: true,
@@ -1569,12 +1569,12 @@ describe('schemas', () => {
15691569
});
15701570
await request({
15711571
method: 'DELETE',
1572-
url: 'http://localhost:8378/1/schemas/A',
1572+
url: 'http://127.0.0.1:8378/1/schemas/A',
15731573
headers: masterKeyHeaders,
15741574
json: true,
15751575
});
15761576
const response = await request({
1577-
url: 'http://localhost:8378/1/schemas',
1577+
url: 'http://127.0.0.1:8378/1/schemas',
15781578
method: 'GET',
15791579
headers: masterKeyHeaders,
15801580
json: true,

src/Controllers/LoggerController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class LoggerController extends AdaptableController {
3838
}
3939

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

0 commit comments

Comments
 (0)