Skip to content

Commit

Permalink
Set HTTP header when tenant not found.
Browse files Browse the repository at this point in the history
  • Loading branch information
hikalkan committed Dec 29, 2022
1 parent 63cc9d3 commit 1a10e58
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ public AbpAspNetCoreMultiTenancyOptions()
AbpMultiTenancyCookieHelper.SetTenantCookie(context, null, options.TenantKey);
}

context.Response.StatusCode = (int)HttpStatusCode.InternalServerError; ;
context.Response.Headers.Add("Abp-Tenant-Resolve-Error", exception.Message);
context.Response.StatusCode = (int)HttpStatusCode.NotFound;
context.Response.ContentType = "text/html";

var message = exception.Message;
Expand Down

0 comments on commit 1a10e58

Please sign in to comment.