Skip to content

Commit

Permalink
Merge pull request #2 from multiprogramm/multiprogramm/1/NationalSymbols
Browse files Browse the repository at this point in the history
Поддержка национальных символов
  • Loading branch information
multiprogramm authored Feb 8, 2022
2 parents 0e36665 + ee76f6c commit 0d15e26
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
6 changes: 6 additions & 0 deletions ListDownloader/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<uri>
<idn enabled="All"/>
</uri>
</configuration>
3 changes: 2 additions & 1 deletion ListDownloader/Download/Downloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ void Download()
/// </summary>
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 );
Expand Down
3 changes: 3 additions & 0 deletions ListDownloader/ListDownloader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
6 changes: 6 additions & 0 deletions ListDownloader/Main/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Net;

namespace ListDownloader
{
Expand All @@ -17,6 +18,11 @@ static int Main( string[] args )
int result = 0;
try
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3
| SecurityProtocolType.Tls
| SecurityProtocolType.Tls11
| SecurityProtocolType.Tls12;

Options options = new Options( args );
Worker worker = new Worker( options );
worker.Run();
Expand Down
4 changes: 2 additions & 2 deletions ListDownloader/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.1.0")]
[assembly: AssemblyFileVersion("1.0.1.0")]
[assembly: AssemblyVersion("1.0.2.0")]
[assembly: AssemblyFileVersion("1.0.2.0")]

0 comments on commit 0d15e26

Please sign in to comment.