Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Getting Headers on error not safe in FastBoot #348

Open
Serabe opened this issue Mar 26, 2018 · 1 comment
Open

Getting Headers on error not safe in FastBoot #348

Serabe opened this issue Mar 26, 2018 · 1 comment
Assignees
Labels
Bug Issue relates to a problem in the `ember-ajax` codebase
Milestone

Comments

@Serabe
Copy link

Serabe commented Mar 26, 2018

In FastBoot, when an error occurs and it falls to the else clause, getting all response headers is not safe as it might not be implemented by najax at that point.

This is the offending line and I'm seeing this error when using a self-signed certificate.

@alexlafroscia alexlafroscia added the Bug Issue relates to a problem in the `ember-ajax` codebase label Mar 26, 2018
@alexlafroscia
Copy link
Collaborator

Interesting... Thoughts on a solution? Is there some way to check for the presence of the heads before assuming we can parse them?

@alexlafroscia alexlafroscia added this to the 4.0.0 milestone Jun 18, 2018
@alexlafroscia alexlafroscia self-assigned this Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Issue relates to a problem in the `ember-ajax` codebase
Projects
None yet
Development

No branches or pull requests

2 participants