Skip to content

在发送 grpc 请求时 header 无法支持数组 #3857

Description

@binwan-dev

下午好,我在调试微服务发送一个grpc请求时,由于我们需要在 header 中传递数组,此时我看到源码中在组装header头时使用了 header.get方法,该方法只取第一个值,导致数组无法传递给后者微服务。

代码链接

Image

Environment:

  • kratos version v2.9.2
  • go version:1.24.0
  • macos 26

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions