Skip to content

Conversation

robertmiles3
Copy link
Contributor

Initial code by @jeffthieleke-wf with my additions of null parameter
check, correct maxLength of 32766, and matching indentations per
@haacked.

Initial code by @jeffthieleke-wf with my additions of null parameter
check, correct maxLength of 32766, and matching indentations per
@haacked.
@haacked
Copy link
Contributor

haacked commented Oct 18, 2013

Unit tests?

@robertmiles3
Copy link
Contributor Author

Will have to be next week now. The rest of the day is shot.

On Oct 18, 2013, at 1:37 PM, Phil Haack notifications@github.com wrote:

Unit tests?


Reply to this email directly or view it on GitHub.

@robertmiles3
Copy link
Contributor Author

Ok, plans changed. I was able to squeeze in a few minutes and write 3 unit tests for it. See if that tickles your fancy. :)

@nicholashead
Copy link

I'll be stoked when this is merged in. Thanks, @robertmiles3 !

@haacked
Copy link
Contributor

haacked commented Oct 18, 2013

Great! Though you're missing one test.

UrlEncode_Returns_Correct_Length_When_Same_As_Limit.

Gotta test all those boundary conditions. But I'm satisfied with this.

haacked added a commit that referenced this pull request Oct 18, 2013
UrlEncode fix for input strings > 32766 limit
@haacked haacked merged commit 86a54f6 into restsharp:master Oct 18, 2013
@haacked
Copy link
Contributor

haacked commented Oct 18, 2013

thumb-up-ironman

Thanks for your contribution!

@robertmiles3 robertmiles3 deleted the escapedatastring-limit-fixer branch October 21, 2013 12:04
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

Successfully merging this pull request may close these issues.

3 participants