private int stripMultipartHeaders(byte[] b, int offset) {
      int i = 0;
      for (i = offset; i < b.length; i++) {
        if (b[i] == '\r' && b[++i] == '\n' && b[++i] == '\r' && b[++i] == '\n') break;
      }
      return i + 1;
    }
It returns the offset separating multipart file headers from the file's data.
selendroid-test-app/src/main/java/io/selendroid/testapp/server/NanoHTTPD.java