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=b593154ee3bcca6835e768e7d8336d0837530434;hp=e90dfcadcc3292b00835bc4c691df1f5fa311a63;hpb=4bedc3ee0dafa48108d79f81174a6e679acabd25;p=nonrtric.git diff --git a/test/http-https-proxy/http_proxy.js b/test/http-https-proxy/http_proxy.js index e90dfcad..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 @@ -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") {