mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 11:35:08 -04:00
Fix launcher crashing on recent mono (Thanks Odd0002)
This commit is contained in:
parent
ae15875431
commit
cc08683264
@ -227,8 +227,8 @@ namespace ClassicalSharp.Network {
|
||||
try {
|
||||
HttpWebRequest req = MakeRequest(request);
|
||||
using (HttpWebResponse response = (HttpWebResponse)req.GetResponse()) {
|
||||
request.ETag = response.Headers[HttpResponseHeader.ETag];
|
||||
if (response.Headers[HttpResponseHeader.LastModified] != null) {
|
||||
request.ETag = response.Headers.Get("ETag");
|
||||
if (response.Headers.Get("Last-Modified") != null) {
|
||||
request.LastModified = response.LastModified;
|
||||
}
|
||||
request.Data = DownloadContent(request, response);
|
||||
|
Loading…
x
Reference in New Issue
Block a user