1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-04 17:34:07 +02:00

Fix recently introduced crash when opening dev tools in notification window

This commit is contained in:
chylex 2017-04-13 19:10:14 +02:00
parent 9a280492c2
commit 38d6d93f65

View File

@ -35,7 +35,7 @@ void IResourceHandler.GetResponseHeaders(IResponse response, out long responseLe
response.StatusCode = 200;
response.StatusText = "OK";
response.ResponseHeaders = headers;
responseLength = dataIn.Length;
responseLength = dataIn != null ? dataIn.Length : -1;
}
bool IResourceHandler.ReadResponse(Stream dataOut, out int bytesRead, ICallback callback){