Skip to content

Commit

Permalink
fixup! refactor: use NameValueCollection instead of `FormUrlEncoded…
Browse files Browse the repository at this point in the history
…Content` in codegen, fix #109 (#113)
  • Loading branch information
MingweiSamuel committed Apr 5, 2024
1 parent 838c818 commit 860e430
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Camille.RiotGames/src/IRiotGamesApi.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Camille.Enums;

namespace Camille.RiotGames
{
Expand Down
5 changes: 3 additions & 2 deletions srcgen/endpointMethods.dt
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Net.Http;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Web;
using Camille.Core;
using Camille.Enums;

Expand Down Expand Up @@ -178,7 +178,8 @@ namespace Camille.{{= it.namespace }}
{
{{? isAsync }}
{{? queryParams.length }}
var queryParams = new NameValueCollection();
// Private `HttpQSCollection` override of `NameValueCollection`.
var queryParams = HttpUtility.ParseQueryString("");
{{
for (const queryParam of queryParams)
{
Expand Down

0 comments on commit 860e430

Please sign in to comment.