Skip to content

AddQueryString generates invalid url #44

Description

Incorrectly Generates url as:
"http://mydomain.com/v2/EndPointName/?&sample=12"
Should be:
"http://mydomain.com/v2/EndPointName/?sample=12"

var request = new RestRequest("EndPointName/"), System.Net.Http.HttpMethod.Post);
request.AddQueryString("sample", 12);

var client = new RestClient();
client.BaseUrl = "http://mydomain.com/v2/";
// .. add some headers

RestResponse response = await client.SendAsync(request);

Activity

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