Fix issue with angular 1.3 not passing headers to tranform

Fixes issue #272