File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
111111 (let* ((size-start (string-contains (car str) " Content-Length: " ))
112112 (size-rest (substring (car str) size-start (string-length (car str))))
113113 (size-stop (string-contains size-rest " \n " ))
114- (size-only (string->number (substring size-rest 18 (- size-stop 1 )))))
114+ (size-only (string->number (substring size-rest 16 (- size-stop 1 )))))
115115 (log-status " download:append: content length " size-only)
116116 (set! download:size size-only)
117117 (set! download:header 200 )
@@ -241,7 +241,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
241241 (let ((tmpsize (if (file-exists? download:tempfile) (file-size download:tempfile) 0.)))
242242 (if (file-exists? filepath)
243243 1.
244- (if (> download:size 0 ) (/ tmpsize download:size) 0.))
244+ (if (> download:size 0 ) (/ (flo tmpsize) download:size) 0.))
245245 ))
246246
247247; ; eof
You can’t perform that action at this time.
0 commit comments