You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by hu...@apache.org on 2021/07/03 14:04:18 UTC

[dubbo-js] branch master updated: fixed: remove check hessian type

This is an automated email from the ASF dual-hosted git repository.

hufeng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-js.git


The following commit(s) were added to refs/heads/master by this push:
     new 2783cc1  fixed: remove check hessian type
2783cc1 is described below

commit 2783cc1d1103162132a9e4a29590092f2978037b
Author: hufeng <fe...@gmail.com>
AuthorDate: Sat Jul 3 22:03:32 2021 +0800

    fixed: remove check hessian type
---
 packages/dubbo-service/src/dubbo-service.ts | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/packages/dubbo-service/src/dubbo-service.ts b/packages/dubbo-service/src/dubbo-service.ts
index da55c4c..7db0acd 100644
--- a/packages/dubbo-service/src/dubbo-service.ts
+++ b/packages/dubbo-service/src/dubbo-service.ts
@@ -201,13 +201,14 @@ export default class DubboService {
             ...(request.args || []),
             ctx
           ])
+          // FIXEDME waiting dubbo/dj
           // check hessian type
-          if (!util.checkRetValHessian(res)) {
-            ctx.body.err = new Error(
-              `${path}#${methodName} return value not hessian type`
-            )
-            return
-          }
+          // if (!util.checkRetValHessian(res)) {
+          //   ctx.body.err = new Error(
+          //     `${path}#${methodName} return value not hessian type`
+          //   )
+          //   return
+          // }
           ctx.body.res = res
         } catch (err) {
           log(`handle request error %s`, err)