handle stubbing of custom headers