Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for addTrailingSlashes (0.29 sec)

  1. platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/ApacheDirectoryListingParser.java

        private static final Logger LOGGER = LoggerFactory.getLogger(ApacheDirectoryListingParser.class);
    
        public List<String> parse(URI baseURI, InputStream content, String contentType) throws Exception {
            baseURI = addTrailingSlashes(baseURI);
            if (contentType == null || !contentType.startsWith("text/html")) {
                throw new ResourceException(baseURI, String.format("Unsupported ContentType %s for directory listing '%s'", contentType, baseURI));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  2. platforms/software/resources-http/src/test/groovy/org/gradle/internal/resource/transport/http/ApacheDirectoryListingParserTest.groovy

            assertNotNull(urls)
            urls.isEmpty()
        }
    
        def "addTrailingSlashes adds trailing slashes on relative URL if not exist"() {
            expect:
            new URI(resultingURI) == parser.addTrailingSlashes(new URI(inputURI))
            where:
            inputURI                     | resultingURI
            "http://testrepo"            | "http://testrepo/"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 7.2K bytes
    - Viewed (0)
Back to top