summaryrefslogtreecommitdiffstats
path: root/go/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'go/index.js')
-rw-r--r--go/index.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/go/index.js b/go/index.js
index 723fb78a..470010a9 100644
--- a/go/index.js
+++ b/go/index.js
@@ -68,8 +68,11 @@ function retrieve (req, res) {
return res.end('not found\r\n');
}
- res.writeHead(200, { 'content-type': 'text/plain' });
- return res.end(reply + '\r\n');
+ res.writeHead(302, {
+ 'content-type': 'text/plain',
+ 'location': reply,
+ });
+ return res.end();
});
}