Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouyuan63 committed Feb 11, 2022
1 parent fd3fb15 commit 916761b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/proxy/index.ts
Expand Up @@ -11,6 +11,7 @@ import {
import http, { ServerOptions } from 'http';
import https from 'https';
import * as urlUtils from '../utils/url';
import scriptProcessor from '../processing/resources/script';
import { readSync as read } from 'read-file-relative';
import { respond500, respondWithJSON, fetchBody, addPreventCachingHeaders } from '../utils/http';
import { run as runRequestPipeline } from '../request-pipeline';
Expand Down Expand Up @@ -214,6 +215,7 @@ export default class Proxy extends Router {

// API
close (): void {
scriptProcessor.jsCache.reset()
this.server1.close();
this.server2.close();
this._closeSockets();
Expand Down

0 comments on commit 916761b

Please sign in to comment.