switch blob protocol to pwblob:
This commit is contained in:
		
							parent
							
								
									9201f5c786
								
							
						
					
					
						commit
						2cb3b10e4d
					
				@ -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)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -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)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user