Skip to content

Strip trailing slash #9

@jangregor

Description

@jangregor

If the URL ends in / the UDPXY-like processing does not work. A solution would be to strip trailing / like this:

        if (url[strlen(url)-1] == '/') {
                logger(LOG_DEBUG, "Stripping trailing /: %s\n", url);
                url[strlen(url)-1] = '\0';
        }

A good place would be to put this in src/httpclients.c right above:
urlfrom = rindex(url, '/');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions