diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-08-01 12:10:02 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-08-10 08:48:24 +0200 |
commit | 67d8a94eb7dd1f9f09a501cc6b39ac2cd11584da (patch) | |
tree | 6bcb76221e9c1fe9b48e08b4314280e3eb3f0fb5 /src/loadlib.js | |
parent | c2c95f23d0a9adeb6a7c473461e74cfbbf8307eb (diff) | |
download | fengari-67d8a94eb7dd1f9f09a501cc6b39ac2cd11584da.tar.gz fengari-67d8a94eb7dd1f9f09a501cc6b39ac2cd11584da.tar.bz2 fengari-67d8a94eb7dd1f9f09a501cc6b39ac2cd11584da.zip |
Synchronous xhr can't edit responseType
Diffstat (limited to 'src/loadlib.js')
-rw-r--r-- | src/loadlib.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loadlib.js b/src/loadlib.js index 7458704..7562cea 100644 --- a/src/loadlib.js +++ b/src/loadlib.js @@ -100,7 +100,7 @@ if (!WEB) { readable = function(filename) { /* TODO: do a GET and store it somewhere to avoid doing two roundtrips ? */ let xhr = new XMLHttpRequest(); - xhr.open("HEAD", filename, false); + xhr.open("HEAD", lua.to_jsstring(filename), false); xhr.send(); /* TODO: subresource integrity check? */ |