Fix small bug with request auto-detection