Skip to content

Commit 661fc18

Browse files
committed
Remove unnecessary appName server config param
1 parent c9d100f commit 661fc18

File tree

7 files changed

+4
-7
lines changed

7 files changed

+4
-7
lines changed

src/cert-check-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { getDeferred } from './util/promise';
66
const buildPage = (config: HtkConfig, style: string, script?: string, body?: string) =>
77
`<html>
88
<head>
9-
<title>${config.appName} HTTPS Test</title>
9+
<title>HTTP Toolkit HTTPS Test</title>
1010
<meta charset="UTF-8" />
1111
<link href="http://fonts.googleapis.com/css?family=Lato" rel="stylesheet" />
1212
<style>

src/config.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export interface HtkConfig {
2-
appName: string;
32
configPath: string;
43
authToken?: string;
54
https: {

src/hide-warning-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class HideWarningServer {
2828

2929
await this.server.get('/hide-warning').thenReply(200, `
3030
<html>
31-
<title>${this.config.appName} Warning Fix</title>
31+
<title>HTTP Toolkit Warning Fix</title>
3232
<meta charset="UTF-8" />
3333
<style>
3434
body { background-color: #d8e2e6; }

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ export async function runHTK(options: {
128128

129129
// Start the HTK server API
130130
const apiServer = new HttpToolkitServerApi({
131-
appName: APP_NAME,
132131
configPath,
133132
authToken: options.authToken,
134133
https: httpsConfig

src/interceptors/fresh-firefox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export class FreshFirefox implements Interceptor {
187187
async setupFirefoxProfile() {
188188
const messageServer = new MessageServer(
189189
this.config,
190-
`${this.config.appName} is preparing a Firefox profile, please wait...`
190+
`HTTP Toolkit is preparing a Firefox profile, please wait...`
191191
);
192192
await messageServer.start();
193193

src/message-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class MessageServer {
2727
statusCode: 200,
2828
body: `
2929
<html>
30-
<title>${this.config.appName}</title>
30+
<title>HTTP Toolkit</title>
3131
<meta charset="UTF-8" />
3232
<link href="http://fonts.googleapis.com/css?family=Lato" rel="stylesheet" />
3333
<style>

test/interceptors/interceptor-test-utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ type InterceptorSetup = TestSetup & {
5050
export async function setupInterceptor(interceptor: string): Promise<InterceptorSetup> {
5151
const testSetup = await setupTest();
5252
const interceptors = buildInterceptors({
53-
appName: "HTTP Toolkit",
5453
configPath: testSetup.configPath,
5554
https: testSetup.httpsConfig
5655
});

0 commit comments

Comments
 (0)