Added support for both On-Behalf-Of and X-On-Behalf-Of request headers, and added check for absense of either.