Skip to content

Import cURL removes trailing slash from URL #307

@exu-g

Description

@exu-g

Importing a curl command where the URL contains a trailing slash removes the trailing slash in Restfox.

To reproduce, try this command. source

curl -X POST https://desec.io/api/v1/domains/{name}/rrsets/ \
    --header "Authorization: Token {secret}" \
    --header "Content-Type: application/json" --data \
    '{"subname": "www", "type": "A", "ttl": 3600, "records": ["127.0.0.1", "127.0.0.2"]}'

As the API in question has different behaviour when the trailing slash is present vs when it is not, this breaks the above example and caused me some confusion until I found the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions