evaluate http header of response
reverted tmp change
strip header before regex