The only problem is that there is absolutely no reference in the Bible to anyone in Sodom being gay, and even if they were, that's never given as one of the reasons God wanted to wipe the place out. If anything, the biggest sin of the people of Sodom was that they really hated foreigners.
In the story, God sends two angels in human form into Sodom to visit Lot's house and inform him that he might want to pack his bags because some serious Old Testament shit was scheduled to happen the next day. This was because the people of Sodom were "wicked" and their sins were "grievous" -- they didn't get more specific than that. But when Lot's neighbors caught wind of the fact that he had out-of-town visitors, they gathered their torches and pitchforks and paid him a visit, demanding to be given a chance to give the foreigners some old-fashioned Sodom hospitality (read: beating and raping them).
Now, it is true that the Sodom lynch mob issues a clear rape threat against Lot's (male) visitors. The quote from the King James Bible is, "Bring them out unto us, that we may know them." In Bible talk, "knowing" someone doesn't exactly mean meeting them over coffee. Many interpret this as evidence of how crazy they all were about gay sex, that the very fact that there were dudes in their city who they hadn't sexed up yet drove them to violent insanity.
But one rape threat against anyone doesn't make someone gay so much as an asshole (see: any prison) and that one line is the only reference to any kind of sexual activity in the whole story. When the Bible clarifies later what Sodom had done to piss off God, it says it was the fact that people of Sodom were lazy, arrogant, and uncharitable. Here's the quote from the King James version: