1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-21 02:37:48 +00:00

http fixes

This commit is contained in:
kepler155c@gmail.com
2017-10-08 20:03:01 -04:00
parent a625b52bad
commit 955f11042b
4 changed files with 66 additions and 48 deletions

View File

@@ -1,5 +1,4 @@
local synchronized = require('sync')
local Util = require('util')
local Util = require('util')
local fs = _G.fs
@@ -51,9 +50,7 @@ function urlfs.open(node, fn, fl)
local c = node.cache
if not c then
synchronized(node.url, function()
c = Util.download(node.url)
end)
c = Util.httpGet(node.url)
if c then
node.cache = c
node.size = #c