Fix to convert 'lime-default-timeout' to int from String

This commit is contained in:
Greg Caldwell
2017-11-22 22:12:37 +00:00
committed by Joshua Granick
parent 04607b5fc0
commit a270a83890

View File

@@ -58,7 +58,7 @@ private class AbstractHTTPRequest<T> implements _IHTTPRequest {
formData = new Map ();
headers = [];
method = GET;
timeout = #if lime_default_timeout Compiler.getDefine ("lime-default-timeout") #else 30000 #end;
timeout = #if lime_default_timeout Std.parseInt( Compiler.getDefine ("lime-default-timeout") ) #else 30000 #end;
withCredentials = false;
#if !display