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

Corrected POST of NSArray containing NSDictionary #2

Open
wants to merge 18 commits into
base: url_query_parameter_encoding_update
Choose a base branch
from

Conversation

nartex
Copy link
Collaborator

@nartex nartex commented Oct 13, 2015

Assuming the following data structure :
{ clients : ( { id : abc, age : 32, name : Bob } , { id : def, age : 43, name : Alice } ) }

The serialized request was :

clients[][id]=abc
clients[][age]=32
clients[][name]=Bob
clients[][id]=def
clients[][age]=43
clients[][name]=Alice

After modification, it'll send :

clients[0][id]=abc
clients[0][age]=32
clients[0][name]=Bob
clients[1][id]=def
clients[1][age]=43
clients[1][name]=Alice

Which is more expected than the previous value

jcayzac and others added 18 commits July 30, 2015 14:17
…meter_encoding_update

Convert query escapes to `stringByAddingPercentEncodingWithAllowedCharacters`
…onnull

Added missing __nullable attributes
use OS_OBJECT_USE_OBJC instead of OS_OBJECT_HAVE_OBJC_SUPPORT
- Changed UIButton category to behave like the UIKit category
- Improved UIButton category documentation
…l_security_tests

Setting `allowInvalidCertificates` to `YES` cause AFNetworking to no longer work. UPDATE: Set `validatesDomainName` to NO to get working.
Fix #2864: allow empty x-www-form-urlencoded bodies
Assuming the following data structure :
{
    clients : (
        {
            id : abc,
            age : 32,
            name : Bob
        } , {
            id : def,
            age : 43,
            name : Alice
        }
    )
}

The serialized request was :

clients[][id]=abc
clients[][age]=32
clients[][name]=Bob
clients[][id]=def
clients[][age]=43
clients[][name]=Alice

After modification, it'll send :

clients[0][id]=abc
clients[0][age]=32
clients[0][name]=Bob
clients[1][id]=def
clients[1][age]=43
clients[1][name]=Alice

Which is more expected than the previous value
@nartex nartex changed the title Corrected POST of NSArray containing NSDIctionary Corrected POST of NSArray containing NSDictionary Oct 13, 2015
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.

4 participants