Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
nonrtric-plt-auth-token-fetch:1.1.1 Release docker image
[nonrtric.git]
/
test
/
http-https-proxy
/
http_proxy.js
diff --git
a/test/http-https-proxy/http_proxy.js
b/test/http-https-proxy/http_proxy.js
index
0bab052
..
178b75f
100644
(file)
--- 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;
const proxyport = 8080;
// Proxy server port for https
const proxyporthttps = 8433;
-// Pro
yx
server alive check, port for http
+// Pro
xy
server alive check, port for http
const aliveport = 8081;
const aliveport = 8081;
-// Pro
yx
server alive check, port for https
+// Pro
xy
server alive check, port for https
const aliveporthttps = 8434;
// Default https destination port
const aliveporthttps = 8434;
// Default https destination port
@@
-77,7
+77,7
@@
function httpclientrequest(clientrequest, clientresponse) {
if (crproto != undefined) {
crurl=crproto+"://"+crhost+crurl
if (debug) {
if (crproto != undefined) {
crurl=crproto+"://"+crhost+crurl
if (debug) {
- console.log(" Constructed u
lr
: "+crurl)
+ console.log(" Constructed u
rl
: "+crurl)
}
} else if (crurl.startsWith('/')) {
console.log("Catched bad url in http request: "+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 des
it
nation
+ // Handle the connection and data transfer between source and des
ti
nation
proxyrequest.on('error', function (error) {
clientresponse.writeHead(500);
stats['http-requests-failed']++;
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 des
it
nation
+ // Handle the connection and data transfer between source and des
ti
nation
proxysocket.on('data', function (chunk) {
socketrequest.write(chunk);
});
proxysocket.on('data', function (chunk) {
socketrequest.write(chunk);
});
@@
-191,7
+191,7
@@
function addhttpsconnect(httpserver) {
function main() {
// -------------------- Alive server ----------------------------------
function main() {
// -------------------- Alive server ----------------------------------
- // Respond
e
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") {
const alivelistener = function (req, res) {
if (req.url == "/debug") {
if (req.method == "GET") {