File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
accessibility-automation/plugin
testObservability/reporter Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ const browserstackAccessibility = (on, config) => {
2828 method : 'GET' ,
2929 timeout : 2000
3030 } ;
31- const req = http . request ( options , ( res ) => {
31+ const httpModule = http ;
32+ const req = httpModule . request ( options , ( res ) => {
3233 let data = '' ;
3334 res . on ( 'data' , ( chunk ) => data += chunk ) ;
3435 res . on ( 'end' , ( ) => {
Original file line number Diff line number Diff line change @@ -223,7 +223,8 @@ class MyReporter {
223223 if ( this . httpServer !== null ) return ;
224224
225225 try {
226- this . httpServer = http . createServer ( async ( req , res ) => {
226+ const httpModule = http ;
227+ this . httpServer = httpModule . createServer ( async ( req , res ) => {
227228 try {
228229 // Set CORS headers
229230 res . setHeader ( 'Access-Control-Allow-Origin' , '*' ) ;
You can’t perform that action at this time.
0 commit comments