Skip to content

Can't read headers anymore #143

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

Closed
Burgov opened this issue May 15, 2018 · 1 comment
Closed

Can't read headers anymore #143

Burgov opened this issue May 15, 2018 · 1 comment
Assignees

Comments

@Burgov
Copy link

Burgov commented May 15, 2018

Before, I was able to read the response headers:

            task.on('complete', (result: any) => {
                let headers = new HttpHeaders();

                const iterator = result.response.getHeaders().entrySet().iterator();
                while (iterator.hasNext()) {
                    const header = iterator.next();
                    headers = headers.append(header.getKey, header.getValue());
                }

                // ...

            });           

However, that doesn't work anymore since #134, because the response object is no longer exposes (not on 'completed', not on 'responded')

@zbranzov
Copy link
Contributor

A fix has been released in the latest 3.2.7 version of the plugin.

@ghost ghost removed the ready for release label May 23, 2018
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

4 participants