NEW YORK — A Connecticut man who police say threatened to kill a New York City teen accused of fatally stabbing Barnard College student Tessa Majors has been charged with making a racist threat online.

Police said Trevor Spring, 31, posted the threat Thursday on a Reddit forum about a suspect in the death of Tessa Majors.

Majors, 18, was walking through Morningside Park, near the school's campus, on December 11 when police believe she was attacked by between one and three assailants, according to New York Police Department Chief of Patrol Services Rodney Harrison.

The 13-year-old boy was arrested and charged with murder in connection with Majors' death.

Police said Spring admitted to writing the Reddit post but maintained he had no intention of carrying out the attack.

Spring was released on bond. It couldn't immediately be determined if he had a lawyer.