I know that if $f : X \rightarrow Y$ is a continuous bijection from a compact space $X$ to a Hausdorff space $Y$, then $f$ is an homeomorphism.
So I was thinking that if we relax the assumption $X$ compact to $X$ locally compact, it should be true as well. Using the above result, $f$ is an homeomorphism if we restrict it to a compact neighborhood of $X$. Since we can find a compact neighborhood around every point of $X$, $f$ should be a local homeomorphism. But a bijective local homeomorphism is a global homeomorphism, so that would be it.
Yet, if I'm not mistaken, the map $f : [0, 2\pi[ \rightarrow S^1, f(\theta) = e^{i\theta}$ is a counterexample. What is wrong with my reasoning ?