Skip to content

Commit

Permalink
Fixes issue with trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
Zemill committed Jul 13, 2024
1 parent 4bd0b24 commit 6586172
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Heroesprofile.Uploader.Common/Uploader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public async Task<UploadStatus> Upload(Replay replay_results, string fingerprint
try {
string response;
using (var client = new WebClient()) {
var bytes = await client.UploadFileTaskAsync($"{HeroesProfileApiEndpoint}/upload/heroesprofile/desktop/?fingerprint={fingerprint}&version={assemblyVersion}", file);
var bytes = await client.UploadFileTaskAsync($"{HeroesProfileApiEndpoint}/upload/heroesprofile/desktop?fingerprint={fingerprint}&version={assemblyVersion}", file);
response = Encoding.UTF8.GetString(bytes);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,4 +259,4 @@
<Move SourceFiles="../Releases/Setup.exe" DestinationFiles="../Releases/HotsApiUploaderSetup.exe" />
<Message Importance="High" Text="Successfully created setup package" />
</Target>
</Project>
</Project>
4 changes: 2 additions & 2 deletions Heroesprofile.Uploader.Windows/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@
// 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("2.4.0")]
[assembly: AssemblyFileVersion("2.4.0")]
[assembly: AssemblyVersion("2.4.1")]
[assembly: AssemblyFileVersion("2.4.1")]
[assembly: AssemblyInformationalVersion("1.0.0")]

0 comments on commit 6586172

Please sign in to comment.