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
8b48b7e0
Commit
8b48b7e0
authored
Jul 26, 2011
by
Dominic Tarr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[minor] code style changes
parent
caa1f494
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
lib/node-http-proxy.js
lib/node-http-proxy.js
+3
-8
No files found.
lib/node-http-proxy.js
View file @
8b48b7e0
...
@@ -180,8 +180,7 @@ exports.createServer = function () {
...
@@ -180,8 +180,7 @@ exports.createServer = function () {
host
:
host
host
:
host
});
});
}
}
if
(
middleware
.
length
)
if
(
middleware
.
length
)
middleware
.
push
(
handler
)
middleware
.
push
(
handler
)
}
}
else
if
(
proxy
.
proxyTable
)
{
else
if
(
proxy
.
proxyTable
)
{
//
//
...
@@ -191,14 +190,10 @@ exports.createServer = function () {
...
@@ -191,14 +190,10 @@ exports.createServer = function () {
handler
=
function
(
req
,
res
)
{
handler
=
function
(
req
,
res
)
{
proxy
.
proxyRequest
(
req
,
res
);
proxy
.
proxyRequest
(
req
,
res
);
}
}
if
(
middleware
.
length
)
if
(
middleware
.
length
)
middleware
.
push
(
handler
)
middleware
.
push
(
handler
)
}
}
if
(
middleware
.
length
)
if
(
middleware
.
length
)
handler
=
stack
(
middleware
,
proxy
);
//handler = callback = middleware.shift()
//else if (middleware.length)
handler
=
callback
=
stack
(
middleware
,
proxy
);
if
(
!
handler
)
{
if
(
!
handler
)
{
//
//
...
...
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