Skip to content

Commit 440f408

Browse files
committed
fix
1 parent 5de1662 commit 440f408

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

7-network/1-xmlhttprequest/article.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ xhr.onload = function() {
9696
};
9797
9898
xhr.onprogress = function(event) {
99+
// event.total=0 if the server did not send Content-Length header
99100
alert(`Received ${event.loaded} of ${event.total}`);
100101
};
101102

0 commit comments

Comments
 (0)