emberjs/data — pull request #1068 by dblock (2013-07-03 15:35:46+00:00)
Title: Specify additional headers for RESTAdapter.

This is code from https://github.com/emberjs/data/pull/803, updated with current implementation that uses a promise. The test doesn't actually test that we do `xhr.setRequestHeader` - merely that we pass headers along. If someone could propose a way to stub just the sending of the request and not the entire ajax method, that'd be great.