Use local var in Action::setHeaders

Change-Id: I543d45835016fd6f4f2ec0e84f4e5453237bbf25
Merge "Use local var in Action::setHeaders"