ExportXMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • 0.1.0
    • Affects Version/s: None
    • Component/s: S2Robot
    • None

      https://foo.com/path のような URL から robots.txt の URL を作成すると
      https:/robots.txt となってしまいます.

      Index: src/main/java/org/seasar/robot/client/http/CommonsHttpClient.java
      ===================================================================
      --- src/main/java/org/seasar/robot/client/http/CommonsHttpClient.java	(revision 121)
      +++ src/main/java/org/seasar/robot/client/http/CommonsHttpClient.java	(working copy)
      @@ -145,7 +145,7 @@
                   return;
               }
       
      -        int idx = url.indexOf('/', 7);
      +        int idx = url.indexOf('/', url.indexOf("://") + 3);
               String hostUrl;
               if (idx >= 0) {
                   hostUrl = url.substring(0, idx);
      

            Assignee:
            shinsuke
            Reporter:
            bowez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: