A man who spat in the face of a security guard and said "I hope you die a horrible death" has been jailed.
Cheltenham Magistrates' Court heard Ricky Baker, 29, who was homeless, had been sleeping at the Central Hotel in Gloucester and was being evicted.
Jailing him for 20 weeks, District Judge Joanna Dickens said the guard "must have been terrified by your actions and the comments you made".
Baker admitted two charges of common assault by spitting.
The court was told the guard had been asked to escort Baker from the premises after he had been warned about his behaviour.
"This is when Baker became aggressive and spat in the face of the security guard. He then laughed at him and said: 'You've got it [coronavirus], I hope you die a horrible death as you are infected now'," prosecutor Sian Hunt said.
Baker, formerly of Lawnside, Stroud, admitted two charges having previously pleaded not guilty.
Sentencing him Judge Dickens said: "I appreciate that you were not happy about being evicted, but spitting at someone in the current climate could be a death sentence to the security guard," she said.
"The way you dealt with it was made worse by you laughing at him and saying what you did was absolutely outrageous."