Skip to content
This repository was archived by the owner on Nov 10, 2020. It is now read-only.

Commit 3946a19

Browse files
committed
Fix bug with Content-Length. Bump => 1.1.0.34
1 parent 6791bc4 commit 3946a19

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

source/XeroAPI.Net.nuspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?xml version="1.0"?>
2-
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
2+
<package >
33
<metadata>
44
<id>XeroAPI.Net</id>
5-
<version>0.0.0.0</version>
5+
<version>1.1.0.34</version>
66
<title>.Net wrapper library for Xero API</title>
77
<authors>XeroAPI</authors>
88
<owners />
99
<projectUrl>https://github.com/XeroAPI/XeroAPI.Net</projectUrl>
1010
<iconUrl>https://secure.gravatar.com/avatar/7fff030fb8040a5157c3fd463858167f.png?s=128</iconUrl>
1111
<requireLicenseAcceptance>false</requireLicenseAcceptance>
12-
<description>.Net wrapper library for Xero API. This library allows you to perform GET/PUT/POST methods against the Xero API without needing to know the internals of xml serialisation, oauth signatures or character encodings. See http://developer.xero.com for more information.</description>
13-
<summary>.Net wrapper library for Xero API</summary>
12+
<description>Obsolete Xero SDK. See https://github.com/XeroAPI/Xero-NetStandard for the new dotnet standard SDK</description>
13+
<summary>Obsolete Xero SDK. See https://github.com/XeroAPI/Xero-NetStandard for the new dotnet standard SDK</summary>
1414
</metadata>
1515
<files>
1616
<file src="XeroApi\bin\Release\XeroApi.dll" target="lib\XeroApi.dll" />

source/XeroApi/OAuth/Consumer/ConsumerResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public class ConsumerResponse : IConsumerResponse
5757
if (webResponse.Headers["Content-Type"] != string.Empty)
5858
ContentType = webResponse.Headers["Content-Type"];
5959

60-
if (webResponse.Headers["Content-Length"] != string.Empty)
60+
if (!string.IsNullOrEmpty(webResponse.Headers["Content-Length"]))
6161
ContentLength = int.Parse(webResponse.Headers["Content-Length"]);
6262

6363
TimeTaken = timeTaken;
-5 Bytes
Binary file not shown.
-5 Bytes
Binary file not shown.

source/XeroApi/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
[assembly: AssemblyConfiguration("")]
1010
[assembly: AssemblyCompany("Xero")]
1111
[assembly: AssemblyProduct("XeroApi")]
12-
[assembly: AssemblyCopyright("Copyright © Xero 2011")]
12+
[assembly: AssemblyCopyright("Copyright © Xero 2018")]
1313
[assembly: AssemblyTrademark("")]
1414
[assembly: AssemblyCulture("")]
1515

@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("1.1.0.33")]
35-
[assembly: AssemblyFileVersion("1.1.0.33")]
34+
[assembly: AssemblyVersion("1.1.0.34")]
35+
[assembly: AssemblyFileVersion("1.1.0.34")]

0 commit comments

Comments
 (0)