code: protected HttpURLConnection createConnection(URL url) throws IOException {
          HttpURLConnection connection = (HttpURLConnection) url.openConnection();
  
          // Workaround for HttpURLConnection not observing the
          // HttpURLConnection.setFollowRedirects() property.
          // Happening in Android M release
          // https://code.google.com/p/android/issues/detail?id=194495
          connection.setInstanceFollowRedirects(HttpURLConnection.getFollowRedirects());
  
          return connection;
      }
docs: Create an {@link HttpURLConnection} for the specified {@code url}.