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
3ab02f3a
Commit
3ab02f3a
authored
Nov 16, 2011
by
Charlie McConnell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] Fix incorrect depth check.
parent
c03a450d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/node-http-proxy/proxy-table.js
lib/node-http-proxy/proxy-table.js
+2
-2
No files found.
lib/node-http-proxy/proxy-table.js
View file @
3ab02f3a
...
...
@@ -140,7 +140,7 @@ ProxyTable.prototype.getProxyLocation = function (req) {
var
pathSegments
=
route
.
path
.
split
(
'
/
'
);
if
(
pathSegments
.
length
>
0
)
{
if
(
pathSegments
.
length
>
1
)
{
// don't include the proxytable path segments in the proxied request url
pathSegments
=
new
RegExp
(
"
/
"
+
pathSegments
.
slice
(
1
).
join
(
'
/
'
));
req
.
url
=
req
.
url
.
replace
(
pathSegments
,
''
);
...
...
@@ -170,4 +170,4 @@ ProxyTable.prototype.close = function () {
if
(
typeof
this
.
routeFile
===
'
string
'
)
{
fs
.
unwatchFile
(
this
.
routeFile
);
}
};
\ No newline at end of file
};
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