diff --git a/Inotify/Startup.cs b/Inotify/Startup.cs index d76d133..40bee35 100644 --- a/Inotify/Startup.cs +++ b/Inotify/Startup.cs @@ -53,7 +53,7 @@ namespace Inotify { OnAuthenticationFailed = context => { - var payload = JsonConvert.SerializeObject(new { message = "֤ʧ", code = 403 }); + var payload = JsonConvert.SerializeObject(new { message = "认证失败", code = 403 }); context.Response.ContentType = "application/json"; context.Response.StatusCode = StatusCodes.Status200OK; context.Response.WriteAsync(payload); @@ -62,7 +62,7 @@ namespace Inotify }, OnForbidden = context => { - var payload = JsonConvert.SerializeObject(new { message = "δȨ", code = 405 }); + var payload = JsonConvert.SerializeObject(new { message = "未经授权", code = 405 }); context.Response.ContentType = "application/json"; context.Response.StatusCode = StatusCodes.Status200OK; context.Response.WriteAsync(payload); @@ -121,7 +121,7 @@ namespace Inotify { var groups = match.Groups; rewriteContext.HttpContext.Request.Path = @"/api/send"; - rewriteContext.HttpContext.Request.QueryString = new QueryString($"?token={groups[2]}&title={groups[3]}&date={groups[4]}"); + rewriteContext.HttpContext.Request.QueryString = new QueryString($"?token={groups[2]}&title={groups[3]}&data={groups[4]}"); } else { @@ -173,4 +173,4 @@ namespace Inotify }); } } -} \ No newline at end of file +}