mozilla-services / cliquet

CLIQUET IS NOW DEPRECATED use kinto.core instead
http://github.com/Kinto/kinto
Other
64 stars 16 forks source link

POST with If-None-Match: * and provided id in body always return 412 #673

Closed leplatrem closed 8 years ago

leplatrem commented 8 years ago
{
        "method": "POST",
        "path": "/buckets/default/collections/tasks/records",
        "headers": {
          "Authorization": "Basic dXNlcjpwYXNz",
          "If-None-Match": "*"
        },
        "body": {
          "data": {
            "id": "660d9409-241e-45cc-8b04-ba1ef72167bb",
            "title": "task3",
            "done": true
          },
          "permissions": {}
        }
      }

always return 412, instead of only when id already exists.