Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
node-http-proxy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
node-http-proxy
Commits
15c18b61
Commit
15c18b61
authored
Aug 02, 2010
by
Marak Squires
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed additional port / server mismatches for new api
parent
bde98f48
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
lib/node-http-proxy.js
lib/node-http-proxy.js
+2
-3
test/node-http-proxy-test.js
test/node-http-proxy-test.js
+1
-1
No files found.
lib/node-http-proxy.js
View file @
15c18b61
...
...
@@ -25,7 +25,6 @@
*/
var
sys
=
require
(
'
sys
'
),
eyes
=
require
(
'
eyes
'
),
http
=
require
(
'
http
'
),
events
=
require
(
'
events
'
);
...
...
@@ -74,7 +73,7 @@ exports.HttpProxy.prototype = {
callback
(
req
,
res
,
self
);
}
else
{
self
.
proxyRequest
(
server
,
port
,
req
,
res
);
self
.
proxyRequest
(
port
,
server
,
req
,
res
);
}
});
...
...
@@ -114,7 +113,7 @@ exports.HttpProxy.prototype = {
delete
this
.
events
[
req
];
},
proxyRequest
:
function
(
server
,
port
,
req
,
res
)
{
proxyRequest
:
function
(
port
,
server
,
req
,
res
)
{
// Remark: nodeProxy.body exists solely for testability
this
.
body
=
''
;
var
self
=
this
;
...
...
test/node-http-proxy-test.js
View file @
15c18b61
...
...
@@ -46,7 +46,7 @@ var startProxyServer = function (port, server, proxy) {
//
// Creates the reverse proxy server with a specified latency
//
var
startLatentProxyServer
=
function
(
server
,
port
,
proxy
,
latency
)
{
var
startLatentProxyServer
=
function
(
port
,
server
,
proxy
,
latency
)
{
// Initialize the nodeProxy and start proxying the request
var
proxyServer
=
proxy
.
createServer
(
function
(
req
,
res
,
proxy
)
{
setTimeout
(
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment