Added headers array to onSuccess