Skip to content

Clean up double-slashes in URLs #91

Closed

Description

@jmcnevin

Version: 1.3.0

If I have a document that defines absolute path URLs like /api/pets and then use the WithBaseURL option with my generated client, like so:

_, _ = lib.NewClient(context.TODO(), lib.WithBaseURL("http://localhost"))

The URLs that will be hit for my client requests will contain a double-slash, like http://localhost//api/pets. Not the end of the world, but some servers may fail to understand this request.

Activity

  1. ghost closed this as completedin #93on Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions