switch blob protocol to pwblob:

This commit is contained in:
Paul Frazee 2015-08-06 22:38:06 -05:00
parent 9201f5c786
commit 2cb3b10e4d
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ app.on('ready', function () {
// setup blob and file serving
var blobs = require('./lib/blobs')(sbot, { blobs_dir: path.join(config.path, 'blobs'), checkout_dir: app.getPath('userDesktop') })
require('protocol').registerProtocol('blob', blobs.protocol)
require('protocol').registerProtocol('pwblob', blobs.protocol)
http.createServer(blobs.server({ serveFiles: false })).listen(7777)
http.createServer(blobs.server({ serveFiles: true })).listen(7778)

View File

@ -159,7 +159,7 @@ module.exports = function (sbot, config) {
}
// blob url parser
var re = /^blob:&([a-z0-9\+\/=]+\.(?:sha256|blake2s))\??(.*)$/i
var re = /^pwblob:&([a-z0-9\+\/=]+\.(?:sha256|blake2s))\??(.*)$/i
var url_parse =
module.exports.url_parse = function (str) {
var parts = re.exec(str)