Header escaping

@rcrichton if you could please review?
Why is this now an array? Shouldn't it just be `headers: headers`