Fix undefined headers={} / miscombined .update() call