git ssb

3+

cel / ssb-npm-registry



Commit 47eb321ffd75f51568db7204562dbaa274e07bb5

Prettify output

cel committed on 10/1/2017, 7:42:15 AM
Parent: d231db10a87ac1fe382c29c1cc72a3ac254a3af5

Files changed

index.jschanged
index.jsView
@@ -299,9 +299,9 @@
299299 this.blobsToPush = []
300300 }
301301
302302 Req.prototype.serve = function () {
303- console.log(this.req.method, this.req.url, this.req.socket.remoteAddress)
303+ // console.log(this.req.method, this.req.url, this.req.socket.remoteAddress.replace(/^::ffff:/, ''))
304304 var pathname = this.req.url.replace(/\?.*/, '')
305305 if (pathname === '/') return this.serveHome()
306306 if (pathname === '/bootstrap') return this.serveBootstrap()
307307 if (pathname === '/-/whoami') return this.serveWhoami()
@@ -312,9 +312,9 @@
312312 }
313313
314314 Req.prototype.respond = function (status, message) {
315315 this.res.writeHead(status, {'content-type': 'application/json'})
316- this.res.end(message && JSON.stringify(message))
316+ this.res.end(message && JSON.stringify(message, 0, 2))
317317 }
318318
319319 Req.prototype.respondError = function (status, message) {
320320 this.respond(status, {error: message})

Built with git-ssb-web