Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExternalWebSession: avoid extra slashes when the path is "" #3387

Closed

Commits on Jul 14, 2020

  1. ExternalWebSession: avoid extra slashes when the path is ""

    Currently, if the caller makes a request to an ExternalWebSession with
    path = "", An extra trailing slash is appended to the URL. This makes
    capabilities for non-"directory" URLs useless; e.g. if the
    ExternalWebSession points to the URL:
    
        http://example.com/rss.xml
    
    Then when trying to fetch that exact URL (rather than something under
    it), the requested URL will most likely be:
    
        http://example.com/rss.xml/
    
    ...which will probably result in 404.
    
    This patch fixes the behavior, such that no additional slash is added if
    path = "".
    zenhack committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    bd079c1 View commit details
    Browse the repository at this point in the history