armeria: Cookie header doesn't work when debugging with DocService

Problem

While I follows annotated-http-service, I found that setting Cookie header doesn’t work when debugging with DocService.

How to test

I tested it with InjectionService.header() method as follows.

DocService

When debugging with the DocService, it doesn’t work. image

Other HTTP client

It does work well when working with the HTTP client of IntelliJ or cURL. image

curl -X GET --location "http://localhost:8080/injection/header" \
    -H "x-armeria-text: hello" \
    -H "x-armeria-sequence: 1" \
    -H "Cookie: x=y" \
    -H "Content-Type: application/json; charset=utf-8"

I wonder if it’s bug or known issue, or if I’m missing something.

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

I wonder if it’s bug or known issue, or if I’m missing something.

That sounds like a bug.