Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace httpstatuses.com with httpstatuses.io #173

Merged
merged 1 commit into from
May 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ProblemDetails/StatusCodeProblemDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private static void SetDetails(MvcProblemDetails details, int statusCode)

internal static string GetDefaultType(int statusCode)
{
return $"https://httpstatuses.com/{statusCode}";
return $"https://httpstatuses.io/{statusCode}";
}
}
}
6 changes: 3 additions & 3 deletions test/ProblemDetails.Tests/ProblemDetailsExceptionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public void Constructor_InitializesMessage()

var exception = new ProblemDetailsException(problemDetails);

Assert.Equal("https://httpstatuses.com/303 : See other", exception.Message);
Assert.Equal("https://httpstatuses.io/303 : See other", exception.Message);
}

[Fact]
Expand All @@ -25,7 +25,7 @@ public void ToString_ReturnsAllDetails()
var exception = new ProblemDetailsException(problemDetails);
var actual = exception.ToString();

var expected = @"Type : https://httpstatuses.com/303
var expected = @"Type : https://httpstatuses.io/303
Title : See other
Status : 303
Detail : Look somewhere else.
Expand Down Expand Up @@ -83,7 +83,7 @@ private static Microsoft.AspNetCore.Mvc.ProblemDetails CreateProblemDetails()
{
return new Microsoft.AspNetCore.Mvc.ProblemDetails
{
Type = "https://httpstatuses.com/303",
Type = "https://httpstatuses.io/303",
Title = "See other",
Status = 303,
Detail = "Look somewhere else.",
Expand Down
4 changes: 2 additions & 2 deletions test/ProblemDetails.Tests/ProblemDetailsMiddlewareTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public async Task ProblemDetailsException_IsHandled()
var details = new MvcProblemDetails
{
Title = ReasonPhrases.GetReasonPhrase(expected),
Type = $"https://httpstatuses.com/{expected}",
Type = $"https://httpstatuses.io/{expected}",
Status = expected,
};

Expand All @@ -171,7 +171,7 @@ public async Task ProblemDetailsException_WithInnerException_InnerExceptionToBeI
var details = new MvcProblemDetails
{
Title = ReasonPhrases.GetReasonPhrase(expected),
Type = $"https://httpstatuses.com/{expected}",
Type = $"https://httpstatuses.io/{expected}",
Status = expected,
};

Expand Down