Skip to content

AddQueryString generates invalid url #44

@ghost

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions