Because of this I needed to set the defaults on send if they haven't been set previously (user-agent obviously can't because it's in the restricted list).
"You will get``Cannot read property 'headers' of undefined""when trying to request a header."