From e07a873bc2b7079792433b314f1441294fce2be5 Mon Sep 17 00:00:00 2001 From: cxfksword Date: Fri, 7 May 2021 12:09:40 +0800 Subject: [PATCH] Fix typo --- Inotify/Startup.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 +}