Skip to content

Commit

Permalink
replace httpstatuses.com with httpstatuses.io
Browse files Browse the repository at this point in the history
  • Loading branch information
Collin Stevens committed May 3, 2022
1 parent 48b8d9e commit 5f155a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
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

0 comments on commit 5f155a9

Please sign in to comment.