Add check request header function.