Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PortableRest 4.0 Alpha-1 #67

Open
Qwin opened this issue Aug 21, 2017 · 1 comment
Open

PortableRest 4.0 Alpha-1 #67

Qwin opened this issue Aug 21, 2017 · 1 comment

Comments

@Qwin
Copy link

Qwin commented Aug 21, 2017

Hi,

I know I am working on an alpha release, but this one seems the only one that I can add to my Xamarin.iOS and Xamarin.Android project (I am using shared library so I cannot use the 3.x versions as they dont have a xamarin supported nuget as far as I know). So one thing I noted that was broken is that the AddQueryString and AddUrlSegment basically double up. Meaning if I add a new query string it will double &key=value&samekey=samevalue (I cannot see it in the debugger at first but after the response happens when I go over the request somehow there a duplicate query string added). For now I am basically just adding it manually to the request string. This doesnt seem to happen for AddParameter.

Kind regards,
Robert Al Malak

@Qwin
Copy link
Author

Qwin commented Aug 21, 2017

Seems I figured out what the issue was, I was getting the resource string in a different place and thus was calling request.GetResource(string.empty) (as the Resource variable only has a set the get is internal (would be great if you could change that to a public get as well)) but when I called GetResource it basically added another set of urlsegments. I am not sure if this is a bug or was supposed to duplicate all query strings... this issue also happens in 3.1.0 beta 7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant