-
-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Labels
BugSomething isn't workingSomething isn't working
Description
Controller/AbstractRestfulController
There is no way to PUT/PATCH object with single field to empty value.
PUT /item/1
Content-Type: application/x-www-form-urlencoded
name=
Request payload is interpreted as string ($data = 'name=';) regardless Content-Type.
Proper value is $data = ['name' => ''];
I think ideally is split behaviour by Content-Type but that follows to huge BC. (see testCanReceiveStringAsRequestContent)
My pull request handle just one situation (example above) by header.
Originally posted by @autowp at zendframework/zend-mvc#251
Metadata
Metadata
Assignees
Labels
BugSomething isn't workingSomething isn't working