Skip to content

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.

5 participants