Skip to content

Commit 1d31503

Browse files
author
wadnm
committed
修复ApiGateway访问大小写敏感问题,修复VSCode无法调试问题
1 parent cdc1685 commit 1d31503

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
"type": "coreclr",
2929
"request": "launch",
3030
"preLaunchTask": "Webbuild",
31-
"program": "${workspaceRoot}/Surging.Web/bin/Debug/netcoreapp2.0/Surging.Web.dll",
31+
"program": "${workspaceRoot}/Surging.ApiGateway/bin/Debug/netcoreapp2.0/Surging.ApiGateway.dll",
3232
"args": [],
33-
"cwd": "${workspaceRoot}/Surging.Web",
33+
"cwd": "${workspaceRoot}/Surging.ApiGateway",
3434
"stopAtEntry": false,
3535
"launchBrowser": {
3636
"enabled": true,

src/.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"reveal": "silent"
3838
},
3939
"args": [
40-
"build", "${workspaceRoot}/Surging.Web/Surging.Web.csproj"
40+
"build", "${workspaceRoot}/Surging.ApiGateway/Surging.ApiGateway.csproj"
4141
],
4242
"problemMatcher": "$msCompile"
4343
}

src/Surging.ApiGateway/Controllers/ServicesController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public async Task<ServiceResult<object>> Path(string path, [FromQuery]string ser
3535
{
3636
ServiceResult<object> result = ServiceResult<object>.Create(false,null);
3737
path = path.ToLower() == GateWayAppConfig.TokenEndpointPath.ToLower() ?
38-
GateWayAppConfig.AuthorizationRoutePath : path;
38+
GateWayAppConfig.AuthorizationRoutePath : path.ToLower();
3939
if ( OnAuthorization(path, model,ref result))
4040
{
4141
if (path == GateWayAppConfig.AuthorizationRoutePath)

0 commit comments

Comments
 (0)