From ee76f6c5e554e878dcaf5884ffbcac2e980b0012 Mon Sep 17 00:00:00 2001 From: multiprogramm Date: Tue, 8 Feb 2022 21:30:55 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=B4=D0=B4=D0=B5=D1=80=D0=B6?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=BD=D0=B0=D1=86=D0=B8=D0=BE=D0=BD=D0=B0=D0=BB?= =?UTF-8?q?=D1=8C=D0=BD=D1=8B=D1=85=20=D0=B4=D0=BE=D0=BC=D0=B5=D0=BD=D0=BE?= =?UTF-8?q?=D0=B2=20=D0=B2=20URL.=20=D0=9F=D0=BE=D0=B4=D0=B4=D0=B5=D1=80?= =?UTF-8?q?=D0=B6=D0=BA=D0=B0=20=D0=BD=D0=B0=D1=86=D0=B8=D0=BE=D0=BD=D0=B0?= =?UTF-8?q?=D0=BB=D1=8C=D0=BD=D1=8B=D1=85=20=D1=81=D0=B8=D0=BC=D0=B2=D0=BE?= =?UTF-8?q?=D0=BB=D0=BE=D0=B2=20=D0=B2=20URL=20(=D1=81=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=BD=D0=B2=D0=B5=D1=80=D1=82=D0=B0=D1=86=D0=B8=D0=B5=D0=B9).?= =?UTF-8?q?=20=D0=A0=D0=B0=D0=B7=D1=80=D0=B5=D1=88=D0=B5=D0=BD=D0=B8=D0=B5?= =?UTF-8?q?=20=D0=B2=D1=81=D0=B5=D1=85=20=D0=BF=D1=80=D0=BE=D1=82=D0=BE?= =?UTF-8?q?=D0=BA=D0=BE=D0=BB=D0=BE=D0=B2=20=D0=B1=D0=B5=D0=B7=D0=BE=D0=BF?= =?UTF-8?q?=D0=B0=D1=81=D0=BD=D0=BE=D1=81=D1=82=D0=B8.=20https://github.co?= =?UTF-8?q?m/multiprogramm/ListDownloader/issues/1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ListDownloader/App.config | 6 ++++++ ListDownloader/Download/Downloader.cs | 3 ++- ListDownloader/ListDownloader.csproj | 3 +++ ListDownloader/Main/Program.cs | 6 ++++++ ListDownloader/Properties/AssemblyInfo.cs | 4 ++-- 5 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 ListDownloader/App.config diff --git a/ListDownloader/App.config b/ListDownloader/App.config new file mode 100644 index 0000000..6522b54 --- /dev/null +++ b/ListDownloader/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ListDownloader/Download/Downloader.cs b/ListDownloader/Download/Downloader.cs index 921c3c0..4b39cc0 100644 --- a/ListDownloader/Download/Downloader.cs +++ b/ListDownloader/Download/Downloader.cs @@ -104,7 +104,8 @@ void Download() /// void DownloadSafe() { - WebRequest request = WebRequest.Create( mInfo.mUrl ); + string url = new Uri( mInfo.mUrl ).AbsoluteUri; + WebRequest request = WebRequest.Create( url ); using( WebResponse response = request.GetResponse() ) { string filePathAfterLoad = ResultPathCalc( response ); diff --git a/ListDownloader/ListDownloader.csproj b/ListDownloader/ListDownloader.csproj index 4c4d5e2..e9571e4 100644 --- a/ListDownloader/ListDownloader.csproj +++ b/ListDownloader/ListDownloader.csproj @@ -85,6 +85,9 @@ false + + +