Allow using private constructor

This commit is contained in:
JustArchi
2017-12-14 08:24:28 +01:00
parent 339eb8df0d
commit 7a543553b3

View File

@@ -362,7 +362,7 @@ namespace ArchiSteamFarm {
object obj;
try {
obj = Activator.CreateInstance(targetType);
obj = Activator.CreateInstance(targetType, true);
} catch (Exception e) {
await ResponseJsonObject(request, response, new GenericResponse(false, string.Format(Strings.ErrorParsingObject, targetType) + Environment.NewLine + e), HttpStatusCode.BadRequest).ConfigureAwait(false);
return true;