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

Empty HTTP parameter values #6

Closed
GoogleCodeExporter opened this issue Aug 15, 2015 · 1 comment
Closed

Empty HTTP parameter values #6

GoogleCodeExporter opened this issue Aug 15, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Passing strings containing empty values (like "[...]emptyparam=&[...]") to 
HTTPInterprete leads to a range check error.

Here's a workaround that works for me (dorHTTPStub.pas, line 231):

          if (i + 1) <= Length(S) then
            value := TSuperObject.Create(PSOChar(@S[i+1]))
          else // empty value
            value := TSuperObject.Create('');

Original issue reported on code.google.com by schnaade...@gmail.com on 15 Feb 2012 at 11:34

@GoogleCodeExporter
Copy link
Author

Original comment by hgourv...@gmail.com on 13 Feb 2014 at 4:13

  • Changed state: Fixed

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

No branches or pull requests

1 participant