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
787370ee
Commit
787370ee
authored
Sep 18, 2011
by
Charlie Robbins
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #109 from jnordberg/master
command line tool - make sure targetPort is an integer
parents
bdf48bea
5ba25aa3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
bin/node-http-proxy
bin/node-http-proxy
+1
-1
No files found.
bin/node-http-proxy
View file @
787370ee
...
...
@@ -64,7 +64,7 @@ if (typeof target === 'string') location = target.split(':');
//
var
server
;
if
(
location
)
{
var
targetPort
=
location
.
length
===
1
?
80
:
location
[
1
]
;
var
targetPort
=
location
.
length
===
1
?
80
:
parseInt
(
location
[
1
])
;
server
=
httpProxy
.
createServer
(
targetPort
,
location
[
0
],
config
);
}
else
if
(
config
.
router
)
{
...
...
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