Skip to content

Commit 04ff2b7

Browse files
committed
when redirecting include url
1 parent ba28685 commit 04ff2b7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ircws",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"author": "Timothy J Fontaine <[email protected]> (http://atxconsulting.com)",
55
"description": "A simple irc websocket proxy with webirc",
66
"keywords": [

proxy.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ var opts = {
1313
};
1414

1515
var server = https.createServer(opts, function (req, res) {
16+
var url = req.url || '';
1617
res.statusCode = 302;
17-
res.setHeader("Location", config.redirectUrl);
18+
res.setHeader("Location", config.redirectUrl + url);
1819
res.end();
1920
});
2021

0 commit comments

Comments
 (0)