{"action":"created","issue":{"url":"https://api.github.com/repos/OData/WebApi/issues/1290","repository_url":"https://api.github.com/repos/OData/WebApi","labels_url":"https://api.github.com/repos/OData/WebApi/issues/1290/labels{/name}","comments_url":"https://api.github.com/repos/OData/WebApi/issues/1290/comments","events_url":"https://api.github.com/repos/OData/WebApi/issues/1290/events","html_url":"https://github.com/OData/WebApi/issues/1290","id":307072830,"number":1290,"title":"batch request return  201 code, on creating entities but the response is not v4 response on $batch protocol","user":{"login":"jlteranr","id":28902628,"avatar_url":"https://avatars1.githubusercontent.com/u/28902628?v=4","gravatar_id":"","url":"https://api.github.com/users/jlteranr","html_url":"https://github.com/jlteranr","followers_url":"https://api.github.com/users/jlteranr/followers","following_url":"https://api.github.com/users/jlteranr/following{/other_user}","gists_url":"https://api.github.com/users/jlteranr/gists{/gist_id}","starred_url":"https://api.github.com/users/jlteranr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlteranr/subscriptions","organizations_url":"https://api.github.com/users/jlteranr/orgs","repos_url":"https://api.github.com/users/jlteranr/repos","events_url":"https://api.github.com/users/jlteranr/events{/privacy}","received_events_url":"https://api.github.com/users/jlteranr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-20T23:18:19Z","updated_at":"2018-04-07T16:33:51Z","closed_at":"2018-04-07T16:33:51Z","author_association":"NONE","body":"<!-- markdownlint-disable MD002 MD041 -->\r\n\r\nResponse is missing on sending  when sending batch request creating entities. status code 201.Created is right but not the body section for the entity created. Http Post alone is doing right.\r\n\r\n### Assemblies affected\r\nBeta 2 7.0.0\r\n\r\n### Reproduce steps\r\n1. Send and http post request $batch with the  create request entities.\r\n\r\n### Expected result\r\n\r\nResponse 201 Created and response body with a serialize JSON object representing the entity created.\r\n\r\n### Actual result\r\n201.Created and NO Response body\r\n\r\n### Initial  Request\r\n\r\nPOST http://localhost:44393/PRSLOdata/$batch HTTP/1.1\r\nAccept: multipart/mixed\r\nAccept-Encoding: gzip, deflate, br\r\nAccept-Language: en\r\nCache-Control: no-cache\r\nConnection: keep-alive\r\nContent-Type: multipart/mixed; boundary=batch_id-1521217824534-20\r\nHost: localhost:44393\r\nMIME-Version: 1.0\r\nOData-MaxVersion: 4.0\r\nOData-Version: 4.0\r\nOrigin: http://localhost:44393\r\nPragma: no-cache\r\nReferer: http://localhost:44393/webapp/index.html\r\nContent-Length: 501\r\n\r\n--batch_id-1521217824534-20\r\nContent-Type:application/http\r\nContent-Transfer-Encoding:binary\r\n\r\nPOST SiteCatalog HTTP/1.1\r\nAccept:application/json;odata.metadata=minimal;IEEE754Compatible=true\r\nAccept-Language:en\r\nContent-Type:application/json;odata.metadata=minimal;charset=UTF-8;IEEE754Compatible=true\r\n\r\n{\"Id\":\"sMRAad\",\"Description\":\" CENTRAL SITE \",\"Blocked\":\"SI\",\"EntityId\":\"eMRA\",\"DateCreated\":\"2018-03-16T16:30:05.276Z\",\"DateUpdated\":\"2018-03-16T16:30:05.276Z\"}\r\n--batch_id-1521217824534-20--\r\n\r\n### Response result\r\n\r\nHTTP/1.1 200 OK\r\nDate: Tue, 20 Mar 2018 22:49:44 GMT\r\nContent-Type: multipart/mixed;boundary=batchresponse_e4297286-1a83-4583-8076-a978e2d5fd67\r\nServer: Kestrel\r\nTransfer-Encoding: chunked\r\nOData-Version: 4.0\r\n\r\n146\r\n--batchresponse_e4297286-1a83-4583-8076-a978e2d5fd67\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201 Created\r\nLocation: http://localhost:44393/PRSLOdata/SiteCatalog('sMRAad')\r\nContent-Type: application/json; odata.metadata=minimal; odata.streaming=true; charset=utf-8\r\nOData-Version: 4.0\r\n\r\n\r\n3a\r\n\r\n--batchresponse_e4297286-1a83-4583-8076-a978e2d5fd67--\r\n\r\n0\r\n\r\n### Response must be include on batch segment\r\n\r\nJSON formated according OData v4.protocol.\r\n\r\nHTTP/1.1 201 Created\r\nDate: Tue, 20 Mar 2018 23:14:19 GMT\r\nContent-Type: application/json; odata.metadata=minimal; odata.streaming=true; charset=utf-8\r\nServer: Kestrel\r\nTransfer-Encoding: chunked\r\nLocation: http://localhost:44393/PRSLOdata/SiteCatalog('sMRAtf')\r\nOData-Version: 4.0\r\n\r\ne9\r\n{\"@odata.context\":\"http://localhost:44393/PRSLOdata/$metadata#SiteCatalog/$entity\",\"Id\":\"sMRAtf\",\"EntityId\":\"eMRA\",\"Description\":\"TC\",\"DateCreated\":\"2018-03-20T11:14:19-06:00\",\"DateUpdated\":\"2018-03-20T11:14:19-06:00\",\"Blocked\":\"SI\"}\r\n0\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/OData/WebApi/issues/comments/379482200","html_url":"https://github.com/OData/WebApi/issues/1290#issuecomment-379482200","issue_url":"https://api.github.com/repos/OData/WebApi/issues/1290","id":379482200,"user":{"login":"jlteranr","id":28902628,"avatar_url":"https://avatars1.githubusercontent.com/u/28902628?v=4","gravatar_id":"","url":"https://api.github.com/users/jlteranr","html_url":"https://github.com/jlteranr","followers_url":"https://api.github.com/users/jlteranr/followers","following_url":"https://api.github.com/users/jlteranr/following{/other_user}","gists_url":"https://api.github.com/users/jlteranr/gists{/gist_id}","starred_url":"https://api.github.com/users/jlteranr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlteranr/subscriptions","organizations_url":"https://api.github.com/users/jlteranr/orgs","repos_url":"https://api.github.com/users/jlteranr/repos","events_url":"https://api.github.com/users/jlteranr/events{/privacy}","received_events_url":"https://api.github.com/users/jlteranr/received_events","type":"User","site_admin":false},"created_at":"2018-04-07T16:33:51Z","updated_at":"2018-04-07T16:33:51Z","author_association":"NONE","body":"Thanks Jacques"}}
{"actor":{"display_login":"jlteranr"}}