File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed
src/Proyecto26.RestClient Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 17
17
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
18
18
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
19
19
20
- [ assembly: AssemblyVersion ( "2.5.3 " ) ]
20
+ [ assembly: AssemblyVersion ( "2.5.4 " ) ]
21
21
22
22
// The following attributes are used to specify the signing key for the assembly,
23
23
// if desired. See the Mono documentation for more information about signing.
Original file line number Diff line number Diff line change 2
2
<package xmlns =" http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd" >
3
3
<metadata >
4
4
<id >Proyecto26.RestClient</id >
5
- <version >2.5.3 </version >
5
+ <version >2.5.4 </version >
6
6
<title >RestClient for Unity</title >
7
7
<authors >Juan David Nicholls Cardona</authors >
8
8
<owners >jdnichollsc</owners >
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ namespace Proyecto26
9
9
{
10
10
/// <summary>
11
11
/// RestClient for Unity
12
- /// Version: 2.5.3
12
+ /// Version: 2.5.4
13
13
/// </summary>
14
14
public static partial class RestClient
15
15
{
Original file line number Diff line number Diff line change @@ -115,8 +115,11 @@ public static IEnumerator DefaultUnityWebRequest<TResponse>(RequestHelper option
115
115
public static IEnumerator SendWebRequest ( UnityWebRequest request , RequestHelper options )
116
116
{
117
117
byte [ ] bodyRaw = options . BodyRaw ;
118
- string contentType = CONTENT_TYPE_JSON ;
119
- options . Headers . TryGetValue ( CONTENT_TYPE_HEADER , out contentType ) ;
118
+ string contentType = string . Empty ;
119
+ if ( ! options . Headers . TryGetValue ( CONTENT_TYPE_HEADER , out contentType ) )
120
+ {
121
+ contentType = CONTENT_TYPE_JSON ;
122
+ }
120
123
if ( options . Body != null || ! string . IsNullOrEmpty ( options . BodyString ) )
121
124
{
122
125
var bodyString = options . BodyString ;
You can’t perform that action at this time.
0 commit comments