{"action":"opened","issue":{"url":"https://api.github.com/repos/projectkudu/WebJobsPortal/issues/231","repository_url":"https://api.github.com/repos/projectkudu/WebJobsPortal","labels_url":"https://api.github.com/repos/projectkudu/WebJobsPortal/issues/231/labels{/name}","comments_url":"https://api.github.com/repos/projectkudu/WebJobsPortal/issues/231/comments","events_url":"https://api.github.com/repos/projectkudu/WebJobsPortal/issues/231/events","html_url":"https://github.com/projectkudu/WebJobsPortal/issues/231","id":143882265,"number":231,"title":"Passing an empty body to an http trigger c# method causes strange behavior.","user":{"login":"davidebbo","id":556238,"avatar_url":"https://avatars.githubusercontent.com/u/556238?v=3","gravatar_id":"","url":"https://api.github.com/users/davidebbo","html_url":"https://github.com/davidebbo","followers_url":"https://api.github.com/users/davidebbo/followers","following_url":"https://api.github.com/users/davidebbo/following{/other_user}","gists_url":"https://api.github.com/users/davidebbo/gists{/gist_id}","starred_url":"https://api.github.com/users/davidebbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidebbo/subscriptions","organizations_url":"https://api.github.com/users/davidebbo/orgs","repos_url":"https://api.github.com/users/davidebbo/repos","events_url":"https://api.github.com/users/davidebbo/events{/privacy}","received_events_url":"https://api.github.com/users/davidebbo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-28T03:15:19Z","updated_at":"2016-03-28T03:15:19Z","closed_at":null,"body":"I'm not quite sure if this is a Portal or runtime issue.\r\n\r\n- Create an http trigger c# method and change the code to this:\r\n\r\n```c#\r\nusing System.Net;\r\nusing System.Threading.Tasks;\r\n\r\npublic static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log)\r\n{\r\n    string name = null;\r\n    dynamic data = await req.Content.ReadAsAsync<object>();\r\n    name = name ?? data?.name ?? \"Azure\";\r\n    return req.CreateResponse(HttpStatusCode.OK, \"Hello \" + name);\r\n}\r\n```\r\n\r\n- In the data box, enter `{\"name\":\"David\"}` and click run. Result: `\"Hello David\"`, as expected\r\n- Now make the data box empty and click run. Result: it still says `\"Hello David\"`! This is a bug. Note that the log claims that it ran successfully.\r\n- Now set the data box to `{}` and click run. Result: `\"Hello Azure\"` as expected."}}