U.S. soldier Chelsea Manning, serving a 35-year prison term for passing classified files to WikiLeaks, ended her hunger strike on Tuesday after the army said she would be allowed to receive gender transition surgery, the American Civil Liberties Union said.

The 28-year-old army private, who was born male but revealed after being convicted of espionage that she identifies as a woman, announced the hunger strike on Friday.

Manning's treatment will begin with the surgery that was recommended by her psychologist in April, the ACLU, which represented Manning, said in a statement. Manning is held in Kansas.