summaryrefslogtreecommitdiff
path: root/core/global_constants.cpp
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2018-08-20 20:21:56 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2018-08-20 20:21:56 +0200
commitdd4fe8588bcf0e99b16e45508da7dcc3a1f3bb8e (patch)
treeee81ababa1d99ce4e30c48ec543a21904aec0d75 /core/global_constants.cpp
parentc1bd768ca2d5fcd7c505b1af5e4de753799a3476 (diff)
Fix occasional crash when downloading assets from the Asset Library
This is caused by GitHub not publishing a Content-Length header in all cases (it only does so if the file was requested recently), which in turn made `String.humanize_size()` try to humanize a size of -1 byte (as returned by HTTPRequest when no Content-Length is contained in the response). This crashed the editor due to a division by zero. This closes #21200.
Diffstat (limited to 'core/global_constants.cpp')
0 files changed, 0 insertions, 0 deletions