Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Body always empty string #210

Open
refaldyrk opened this issue Jul 5, 2024 · 1 comment
Open

Body always empty string #210

refaldyrk opened this issue Jul 5, 2024 · 1 comment

Comments

@refaldyrk
Copy link

fmt.Println(kong.ServiceResponse.GetRawBody())

I try to call this function but return empty string

how fix this please?

@anthonykzip
Copy link

Were you able to fix this? I'm also seeing the same thing. I also can't seem to print out Service Response headers that I set from the app either.

ex:
In the app handler
w.Header().Set("header", "value")

In Response() of plugin
headers, _ := kong.ServiceResponse.GetHeaders(1000)

headers is empty for some reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants