This is an automated email from the ASF dual-hosted git repository. liubao pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/servicecomb-samples.git
commit 06b60a5640e67cb49491a87d8003213ba9bd62e0 Author: liubao <[email protected]> AuthorDate: Fri Mar 8 16:07:03 2019 +0800 spell --- .../org/apache/servicecomb/samples/porter/gateway/ApiDispatcher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/porter_lightweight/gateway-service/src/main/java/org/apache/servicecomb/samples/porter/gateway/ApiDispatcher.java b/porter_lightweight/gateway-service/src/main/java/org/apache/servicecomb/samples/porter/gateway/ApiDispatcher.java index c80f42a..3057c1f 100644 --- a/porter_lightweight/gateway-service/src/main/java/org/apache/servicecomb/samples/porter/gateway/ApiDispatcher.java +++ b/porter_lightweight/gateway-service/src/main/java/org/apache/servicecomb/samples/porter/gateway/ApiDispatcher.java @@ -47,10 +47,10 @@ public class ApiDispatcher extends AbstractEdgeDispatcher { String path = "/" + pathParams.get("param1"); EdgeInvocation invoker = new EdgeInvocation() { - // 认证鉴权:构造Invocation的时候,设置会话信息。如果是认证请求,则添加Cookie。 + // Authentication protected void createInvocation() { super.createInvocation(); - // 既从cookie里面读取会话ID,也从header里面读取,方便各种独立的测试工具联调 + // get session id from header and cookie for debug reasons String sessionId = context.request().getHeader("session-id"); if (sessionId != null) { this.invocation.addContext("session-id", sessionId);
