PortableRest
PortableRest copied to clipboard
PortableRest 4.0 Alpha-1
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
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