Skip to content

Commit 0b2744d

Browse files
authored
Merge pull request #1 from thiagoelg/upgrade-deps
Upgrade deps + npm shrinkwrap
2 parents 65e7d34 + 376bc9b commit 0b2744d

File tree

4 files changed

+11647
-9186
lines changed

4 files changed

+11647
-9186
lines changed

index.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,20 @@ async function service (req, res) {
1010
middleware(req, res, () => {
1111
let u = url.parse(req.url, true)
1212

13+
if (u.pathname === '/ping') {
14+
res.setHeader('content-type', 'text/plain')
15+
return send(res, 200, "pong")
16+
}
17+
1318
if (u.pathname === '/') {
1419
res.setHeader('content-type', 'text/html')
1520
let html = `<!DOCTYPE html>
1621
<html>
17-
<title>@isomorphic-git/cors-proxy</title>
18-
<h1>@isomorphic-git/cors-proxy</h1>
19-
<p>This is the server software that runs on <a href="https://cors.isomorphic-git.org">https://cors.isomorphic-git.org</a>
20-
&ndash; a free service (generously sponsored by <a href="https://www.clever-cloud.com/?utm_source=ref&utm_medium=link&utm_campaign=isomorphic-git">Clever Cloud</a>)
21-
for users of <a href="https://isomorphic-git.org">isomorphic-git</a> that enables cloning and pushing repos in the browser.</p>
22-
<p>The source code is hosted on Github at <a href="https://github.com/isomorphic-git/cors-proxy">https://github.com/isomorphic-git/cors-proxy</a></p>
23-
<p>It can also be installed from npm with <code>npm install <a href="https://npmjs.org/package/${pkg.name}">@isomorphic-git/cors-proxy</a></code></p>
22+
<title>@thiagoelg/cors-proxy</title>
23+
<h1>@thiagoelg/cors-proxy (forked from @isopmorphic-git/cors-proxy)</h1>
24+
<p>This is the server software for users of <a href="https://isomorphic-git.org">isomorphic-git</a> that enables cloning and pushing repos in the browser.</p>
25+
<p>The source code is hosted on Github at <a href="https://github.com/thiagoelg/cors-proxy">https://github.com/thiagoelg/cors-proxy</a></p>
26+
<p>It can also be installed from npm with <code>npm install <a href="https://npmjs.org/package/${pkg.name}">@thiagoelg/cors-proxy</a></code></p>
2427
2528
<h2>Terms of Use</h2>
2629
<p><b>This free service is provided to you AS IS with no guarantees.

0 commit comments

Comments
 (0)