mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
fix update check
This commit is contained in:
@@ -514,7 +514,7 @@ namespace JDP {
|
||||
if (resp.StatusCode == HttpStatusCode.OK)
|
||||
{
|
||||
using (Stream respStream = resp.GetResponseStream())
|
||||
using (FileStream motd = new FileStream(MOTDImagePath, FileMode.CreateNew, FileAccess.Write))
|
||||
using (FileStream motd = new FileStream(MOTDImagePath, FileMode.Create, FileAccess.Write))
|
||||
{
|
||||
byte[] buff = new byte[0x8000];
|
||||
do
|
||||
@@ -551,7 +551,7 @@ namespace JDP {
|
||||
if (resp.StatusCode == HttpStatusCode.OK)
|
||||
{
|
||||
using (Stream respStream = resp.GetResponseStream())
|
||||
using (FileStream motd = new FileStream(MOTDTextPath, FileMode.CreateNew, FileAccess.Write))
|
||||
using (FileStream motd = new FileStream(MOTDTextPath, FileMode.Create, FileAccess.Write))
|
||||
using (StreamReader sr = new StreamReader(respStream, Encoding.UTF8))
|
||||
using (StreamWriter sw = new StreamWriter(motd, Encoding.UTF8))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user