Skip to content

Commit a25180b

Browse files
committed
Merge remote-tracking branch 'origin/dev' into dev
2 parents 10dc0e3 + 9913432 commit a25180b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ assignees: ''
1111

1212
**Describe the bug**
1313
A clear and concise description of what the bug is.
14+
Hint: use a tool like https://requestbin.com to compare working and non-working requests.
1415

1516
**To Reproduce**
1617
Steps to reproduce the behavior, preferably using a code snippet.
18+
Post the non-working request here as well if you made it work using Postman, Swagger, or any other client.
1719

1820
**Expected behavior**
1921
A clear and concise description of what you expected to happen.
22+
Post the working request here as well if you made it work using Postman, Swagger, or any other client.
2023

2124
**Stack trace**
2225
Copy the full stack trace here if you get an exception.

src/RestSharp/RestClient.Serialization.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,6 @@ internal RestResponse<T> Deserialize<T>(RestRequest request, RestResponse raw) {
9696
return factory?.GetSerializer().Deserializer;
9797

9898
string? DetectContentType()
99-
=> response.Content!.StartsWith("<") ? ContentType.Xml : response.Content.StartsWith("{") ? ContentType.Json : null;
99+
=> response.Content!.StartsWith("<") ? ContentType.Xml : response.Content.StartsWith("{") || response.Content.StartsWith("[") ? ContentType.Json : null;
100100
}
101-
}
101+
}

test/RestSharp.IntegrationTests/RestSharp.IntegrationTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<ItemGroup>
1515
<PackageReference Include="HttpTracer" Version="2.1.1" />
1616
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="6.0.1" />
17-
<PackageReference Include="Polly" Version="7.2.2" />
17+
<PackageReference Include="Polly" Version="7.2.3" />
1818
<PackageReference Include="Xunit.Extensions.Logging" Version="1.1.0" />
1919
</ItemGroup>
2020
<ItemGroup>

0 commit comments

Comments
 (0)