This question is based on a doubt in the response given here. Since the answer posted is quite old, I am asking my doubt as a separate question.
We have,
$$\begin{align}\tag 1 F'(\omega)&=-\sqrt{\frac 2\pi}\int_0^\infty \frac{x\sin(\omega x)}{1+x^2}\,dx\\\\ &=-\sqrt{\frac 2\pi}\int_0^\infty \frac{(1+x^2-1)\sin(\omega x)}{x(1+x^2)}\,dx\\\\ &=-\sqrt{\frac 2\pi}\left(\frac\pi 2 -\int_0^\infty \frac{\sin(\omega x)}{x(1+x^2)}\right)\,dx\tag 2 \end{align}$$
Now letting $\omega\to 0$ in (1) gives $0$. But letting $\omega\to 0$ in (2) gives $-\sqrt{\frac{\pi}{2}}$. Why is the former wrong and the latter correct?