mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-07 04:16:51 +00:00
Merge pull request #734 from octokit/release-candidate
0.7.2 - Can't Handle My Scale
This commit is contained in:
@@ -439,7 +439,7 @@ namespace Octokit.Tests.Http
|
||||
httpClient.Received().Send(Arg.Is<IRequest>(req =>
|
||||
req.BaseAddress == _exampleUri &&
|
||||
req.Body == body &&
|
||||
req.Headers["Accept"] == "application/vnd.github.moondragon+json; charset=utf-8,application/vnd.github.v3+json; charset=utf-8" &&
|
||||
req.Headers["Accept"] == "application/vnd.github.v3+json; charset=utf-8" &&
|
||||
req.ContentType == "application/arbitrary" &&
|
||||
req.Method == HttpMethod.Post &&
|
||||
req.Endpoint == new Uri("https://other.host.com/path?query=val")), Args.CancellationToken);
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace Octokit.Tests.Http
|
||||
jsonPipeline.SerializeRequest(request);
|
||||
|
||||
Assert.Contains("Accept", request.Headers.Keys);
|
||||
Assert.Equal("application/vnd.github.moondragon+json; charset=utf-8,application/vnd.github.v3+json; charset=utf-8", request.Headers["Accept"]);
|
||||
Assert.Equal("application/vnd.github.v3+json; charset=utf-8", request.Headers["Accept"]);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -11,7 +11,6 @@ namespace Octokit.Internal
|
||||
/// </summary>
|
||||
public class JsonHttpPipeline
|
||||
{
|
||||
private const string moondragonPreviewApiVersion = "application/vnd.github.moondragon+json; charset=utf-8";
|
||||
private const string v3ApiVersion = "application/vnd.github.v3+json; charset=utf-8";
|
||||
|
||||
readonly IJsonSerializer _serializer;
|
||||
@@ -34,7 +33,7 @@ namespace Octokit.Internal
|
||||
if (!request.Headers.ContainsKey("Accept"))
|
||||
{
|
||||
|
||||
request.Headers["Accept"] = String.Join(",", moondragonPreviewApiVersion, v3ApiVersion);
|
||||
request.Headers["Accept"] = v3ApiVersion;
|
||||
}
|
||||
|
||||
if (request.Method == HttpMethod.Get || request.Body == null) return;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
### New in 0.7.2 (released 2015/03/01)
|
||||
* Fixed: unshipped Orgs Permissions preview API changes due to excessive paging in some situations.
|
||||
|
||||
### New in 0.7.1 (released 2015/02/26)
|
||||
* New: `SearchCodeRequest` has overloads for owner and repository name - #705 via @kfrancis
|
||||
* New - support for preview Authorization API changes - #647 via @shiftkey
|
||||
|
||||
+3
-3
@@ -3,11 +3,11 @@ using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
[assembly: AssemblyProductAttribute("Octokit")]
|
||||
[assembly: AssemblyVersionAttribute("0.7.1")]
|
||||
[assembly: AssemblyFileVersionAttribute("0.7.1")]
|
||||
[assembly: AssemblyVersionAttribute("0.7.2")]
|
||||
[assembly: AssemblyFileVersionAttribute("0.7.2")]
|
||||
[assembly: ComVisibleAttribute(false)]
|
||||
namespace System {
|
||||
internal static class AssemblyVersionInformation {
|
||||
internal const string Version = "0.7.1";
|
||||
internal const string Version = "0.7.2";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user