Based on this: https://math.stackexchange.com/a/110465/595084
I was reading through the derivation process of $$\int^{\infty}_0\frac{x^n}{1+x^m}=\frac{\pi}{m} \csc\left(\frac{\pi (n+1)}{m}\right),\qquad n\ge0,\,m>n+1$$ by way of a pizza slice contour.
Since the poles of the complex function(which is just the integrand) is not dependent on the numerator, we just have to look at the denominator, so just fix a $n=0$.
The contour works very well for all $m\ge2$, but from what I see I have a hard time justifying how it would work for $1<m<2$.
Since we have non-integer $m$, our function is multivalued and the answer states that we would take the principal branch, which means there is a branch cut along the negative real axis.
Here's the problem. When $1<m<1.5$, we have a contour similar to
which not only crosses the branch cut twice, and encloses more than $1$ pole. This would obviously invalidate the residue that we get by assuming the contour encloses only $1$ pole.
When we have $m=1.5$, we actually integrate through a pole
I'm presuming this wouldn't be much of a problem if we make a small detour around it. The small arc around the pole goes to $0$, and the path coming back to the origin can be thought of in a principal value sense. But we're still integrating past a branch cut.
When $1.5<m<2$, we have a contour that looks like
which still crosses the branch cut twice!
At the integers there is no branch cut and the poles are nicely oriented so we don't have any problems, but in this small interval between 1 and 2, it seems like the contour shouldn't work at all. Yet, I have verified that the integral and formula work for this interval.
Why does it work?