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

http plugin: response header as a list #690

Merged
merged 1 commit into from
Feb 22, 2022
Merged

Conversation

ramilexe
Copy link
Contributor

Axios could return value in response header as a list (array) instead of string. We need to handle it and convert it to string

Closes: #655

…rray) instead of string. We need to handle it and convert to string
@ramilexe ramilexe requested a review from dOrgJelli as a code owner February 20, 2022 13:46
Copy link
Contributor

@Niraj-Kamdar Niraj-Kamdar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

But we should research on creating more robust request-response type, since as we can see in the case of set-cookie, we need to parse the key, value manually on wrapper side which can be tedious task and definitely be automated.

We can look into http libraries of different strongly typed languages like Rust, go, c++ to know how they are handling it.

@dOrgJelli dOrgJelli merged commit a2dd945 into prealpha-dev Feb 22, 2022
@ramilexe ramilexe deleted the http_header branch February 23, 2022 22:01
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

Successfully merging this pull request may close these issues.

4 participants