X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fhttp-https-proxy%2Fhttp_proxy.js;h=178b75fa92b0e4a29622259f0a99539598c8ed8a;hb=refs%2Fchanges%2F90%2F12790%2F1;hp=0bab0523b55b146b2c2a8870a62412255af0fa0b;hpb=0a882454d203e62e18f55ed1d3d5b3790801169b;p=nonrtric.git diff --git a/test/http-https-proxy/http_proxy.js b/test/http-https-proxy/http_proxy.js index 0bab0523..178b75fa 100644 --- a/test/http-https-proxy/http_proxy.js +++ b/test/http-https-proxy/http_proxy.js @@ -30,9 +30,9 @@ const fs = require('fs'); const proxyport = 8080; // Proxy server port for https const proxyporthttps = 8433; -// Proyx server alive check, port for http +// Proxy server alive check, port for http const aliveport = 8081; -// Proyx server alive check, port for https +// Proxy server alive check, port for https const aliveporthttps = 8434; // Default https destination port @@ -77,7 +77,7 @@ function httpclientrequest(clientrequest, clientresponse) { if (crproto != undefined) { crurl=crproto+"://"+crhost+crurl if (debug) { - console.log(" Constructed ulr: "+crurl) + console.log(" Constructed url: "+crurl) } } else if (crurl.startsWith('/')) { console.log("Catched bad url in http request: "+crurl) @@ -112,7 +112,7 @@ function httpclientrequest(clientrequest, clientresponse) { } ); - // Handle the connection and data transfer between source and desitnation + // Handle the connection and data transfer between source and destination proxyrequest.on('error', function (error) { clientresponse.writeHead(500); stats['http-requests-failed']++; @@ -158,7 +158,7 @@ function addhttpsconnect(httpserver) { } ); - // Handle the connection and data transfer between source and desitnation + // Handle the connection and data transfer between source and destination proxysocket.on('data', function (chunk) { socketrequest.write(chunk); }); @@ -191,7 +191,7 @@ function addhttpsconnect(httpserver) { function main() { // -------------------- Alive server ---------------------------------- - // Responde with '200' and statistics for any path (except for GET|PUT|DELETE on /debug) on the alive address + // Respond with '200' and statistics for any path (except for GET|PUT|DELETE on /debug) on the alive address const alivelistener = function (req, res) { if (req.url == "/debug") { if (req.method == "GET") {