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

Copy headers to error object explicitly. #245

Merged
merged 1 commit into from
Apr 24, 2014
Merged

Copy headers to error object explicitly. #245

merged 1 commit into from
Apr 24, 2014

Conversation

davedoesdev
Copy link
Contributor

The way that cradle/response.extend works means the properties don't enumerate.
This causes tests which are checking status to fail (macros.status fails because e.headers is undefined).
With this fix, all tests pass for me.

The way that cradle/response.extend works means the properties don't enumerate
@indexzero
Copy link
Member

+1 cc/ @sreuter

sreuter added a commit that referenced this pull request Apr 24, 2014
Copy headers to error object explicitly.
@sreuter sreuter merged commit a94c676 into flatiron:master Apr 24, 2014
@sreuter
Copy link
Contributor

sreuter commented Apr 24, 2014

@davedoesdev Good catch, thanks a bunch!

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