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

How receive header at blob type? #19236

Closed
cipchk opened this issue Sep 17, 2017 · 5 comments
Closed

How receive header at blob type? #19236

cipchk opened this issue Sep 17, 2017 · 5 comments

Comments

@cipchk
Copy link

cipchk commented Sep 17, 2017

I'm submitting a...


[x] Feature request

Current behavior

this._http
    .get(environment.SERVER_URL + this.url, {  responseType: 'blob' })
    .subscribe((res: Blob) => {

    });

I can see on the network tab that the response include a custom header.

tim 20170917212305

my question, how do get the x-filename headers?

@trotyl
Copy link
Contributor

trotyl commented Sep 17, 2017

image

@cipchk
Copy link
Author

cipchk commented Sep 17, 2017

thx.

@JayendharPrakash
Copy link

@trotyl I'm sorry. I can't exactly understand what has to be done.
Could you please explain in details?

@mtpultz
Copy link

mtpultz commented Jun 21, 2018

@JayendharPrakash if you haven't figured it out yet, or for anyone else. He means set the observe parameter in the get request. In your case observe: response to access the body and any headers. If you have custom headers that aren't showing up have a look at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants