routing: fix: don't reuse UrlConnection in getFromResource

Otherwise every access after the first one fails with "Stream already closed".