{"action":"created","comment":{"url":"https://api.github.com/repos/bjpirt/esphttpd/pulls/comments/26029418","id":26029418,"diff_hunk":"@@ -102,3 +105,50 @@ int ICACHE_FLASH_ATTR cgiReadFlash(HttpdConnData *connData) {\n \tif (*pos>=0x40200000+(512*1024)) return HTTPD_CGI_DONE; else return HTTPD_CGI_MORE;\n }\n \n+uint32_t postCounter = 0;\n+\n+int ICACHE_FLASH_ATTR cgiUploadEspfs(HttpdConnData *connData) {\n+\tif (connData->conn==NULL) {\n+\t\t//Connection aborted. Clean up.\n+\t\treturn HTTPD_CGI_DONE;\n+\t}\n+\tSpiFlashOpResult ret;\n+\tint x;\n+\tuint32_t flashOff = ESPFS_POS;","path":"user/cgi.c","position":58,"original_position":58,"commit_id":"c2a02f28ea7344b39c650a9329fa932f3603b8fd","original_commit_id":"c2a02f28ea7344b39c650a9329fa932f3603b8fd","user":{"login":"bjpirt","id":186499,"avatar_url":"https://avatars.githubusercontent.com/u/186499?v=3","gravatar_id":"","url":"https://api.github.com/users/bjpirt","html_url":"https://github.com/bjpirt","followers_url":"https://api.github.com/users/bjpirt/followers","following_url":"https://api.github.com/users/bjpirt/following{/other_user}","gists_url":"https://api.github.com/users/bjpirt/gists{/gist_id}","starred_url":"https://api.github.com/users/bjpirt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjpirt/subscriptions","organizations_url":"https://api.github.com/users/bjpirt/orgs","repos_url":"https://api.github.com/users/bjpirt/repos","events_url":"https://api.github.com/users/bjpirt/events{/privacy}","received_events_url":"https://api.github.com/users/bjpirt/received_events","type":"User","site_admin":false},"body":"I moved these definitions out to the config file so it's easier to change","created_at":"2015-03-09T11:50:36Z","updated_at":"2015-03-09T11:50:36Z","html_url":"https://github.com/bjpirt/esphttpd/pull/3#discussion_r26029418","pull_request_url":"https://api.github.com/repos/bjpirt/esphttpd/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/bjpirt/esphttpd/pulls/comments/26029418"},"html":{"href":"https://github.com/bjpirt/esphttpd/pull/3#discussion_r26029418"},"pull_request":{"href":"https://api.github.com/repos/bjpirt/esphttpd/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/bjpirt/esphttpd/pulls/3","id":30700440,"html_url":"https://github.com/bjpirt/esphttpd/pull/3","diff_url":"https://github.com/bjpirt/esphttpd/pull/3.diff","patch_url":"https://github.com/bjpirt/esphttpd/pull/3.patch","issue_url":"https://api.github.com/repos/bjpirt/esphttpd/issues/3","number":3,"state":"open","locked":false,"title":"Streaming support for POST requests","user":{"login":"bjpirt","id":186499,"avatar_url":"https://avatars.githubusercontent.com/u/186499?v=3","gravatar_id":"","url":"https://api.github.com/users/bjpirt","html_url":"https://github.com/bjpirt","followers_url":"https://api.github.com/users/bjpirt/followers","following_url":"https://api.github.com/users/bjpirt/following{/other_user}","gists_url":"https://api.github.com/users/bjpirt/gists{/gist_id}","starred_url":"https://api.github.com/users/bjpirt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjpirt/subscriptions","organizations_url":"https://api.github.com/users/bjpirt/orgs","repos_url":"https://api.github.com/users/bjpirt/repos","events_url":"https://api.github.com/users/bjpirt/events{/privacy}","received_events_url":"https://api.github.com/users/bjpirt/received_events","type":"User","site_admin":false},"body":"This is a dummy pull request to provide a place to discuss the changes to esp-httpd to make it handle streaming POST requests.","created_at":"2015-03-07T09:40:03Z","updated_at":"2015-03-09T11:50:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cc374482abdd6c179964e76cc4658f50e0a7eba3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bjpirt/esphttpd/pulls/3/commits","review_comments_url":"https://api.github.com/repos/bjpirt/esphttpd/pulls/3/comments","review_comment_url":"https://api.github.com/repos/bjpirt/esphttpd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bjpirt/esphttpd/issues/3/comments","statuses_url":"https://api.github.com/repos/bjpirt/esphttpd/statuses/c2a02f28ea7344b39c650a9329fa932f3603b8fd","head":{"label":"bjpirt:streaming","ref":"streaming","sha":"c2a02f28ea7344b39c650a9329fa932f3603b8fd","user":{"login":"bjpirt","id":186499,"avatar_url":"https://avatars.githubusercontent.com/u/186499?v=3","gravatar_id":"","url":"https://api.github.com/users/bjpirt","html_url":"https://github.com/bjpirt","followers_url":"https://api.github.com/users/bjpirt/followers","following_url":"https://api.github.com/users/bjpirt/following{/other_user}","gists_url":"https://api.github.com/users/bjpirt/gists{/gist_id}","starred_url":"https://api.github.com/users/bjpirt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjpirt/subscriptions","organizations_url":"https://api.github.com/users/bjpirt/orgs","repos_url":"https://api.github.com/users/bjpirt/repos","events_url":"https://api.github.com/users/bjpirt/events{/privacy}","received_events_url":"https://api.github.com/users/bjpirt/received_events","type":"User","site_admin":false},"repo":{"id":26026461,"name":"esphttpd","full_name":"bjpirt/esphttpd","owner":{"login":"bjpirt","id":186499,"avatar_url":"https://avatars.githubusercontent.com/u/186499?v=3","gravatar_id":"","url":"https://api.github.com/users/bjpirt","html_url":"https://github.com/bjpirt","followers_url":"https://api.github.com/users/bjpirt/followers","following_url":"https://api.github.com/users/bjpirt/following{/other_user}","gists_url":"https://api.github.com/users/bjpirt/gists{/gist_id}","starred_url":"https://api.github.com/users/bjpirt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjpirt/subscriptions","organizations_url":"https://api.github.com/users/bjpirt/orgs","repos_url":"https://api.github.com/users/bjpirt/repos","events_url":"https://api.github.com/users/bjpirt/events{/privacy}","received_events_url":"https://api.github.com/users/bjpirt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bjpirt/esphttpd","description":"A fork of http://git.spritesserver.nl/esphttpd.git/","fork":false,"url":"https://api.github.com/repos/bjpirt/esphttpd","forks_url":"https://api.github.com/repos/bjpirt/esphttpd/forks","keys_url":"https://api.github.com/repos/bjpirt/esphttpd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bjpirt/esphttpd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bjpirt/esphttpd/teams","hooks_url":"https://api.github.com/repos/bjpirt/esphttpd/hooks","issue_events_url":"https://api.github.com/repos/bjpirt/esphttpd/issues/events{/number}","events_url":"https://api.github.com/repos/bjpirt/esphttpd/events","assignees_url":"https://api.github.com/repos/bjpirt/esphttpd/assignees{/user}","branches_url":"https://api.github.com/repos/bjpirt/esphttpd/branches{/branch}","tags_url":"https://api.github.com/repos/bjpirt/esphttpd/tags","blobs_url":"https://api.github.com/repos/bjpirt/esphttpd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bjpirt/esphttpd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bjpirt/esphttpd/git/refs{/sha}","trees_url":"https://api.github.com/repos/bjpirt/esphttpd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bjpirt/esphttpd/statuses/{sha}","languages_url":"https://api.github.com/repos/bjpirt/esphttpd/languages","stargazers_url":"https://api.github.com/repos/bjpirt/esphttpd/stargazers","contributors_url":"https://api.github.com/repos/bjpirt/esphttpd/contributors","subscribers_url":"https://api.github.com/repos/bjpirt/esphttpd/subscribers","subscription_url":"https://api.github.com/repos/bjpirt/esphttpd/subscription","commits_url":"https://api.github.com/repos/bjpirt/esphttpd/commits{/sha}","git_commits_url":"https://api.github.com/repos/bjpirt/esphttpd/git/commits{/sha}","comments_url":"https://api.github.com/repos/bjpirt/esphttpd/comments{/number}","issue_comment_url":"https://api.github.com/repos/bjpirt/esphttpd/issues/comments{/number}","contents_url":"https://api.github.com/repos/bjpirt/esphttpd/contents/{+path}","compare_url":"https://api.github.com/repos/bjpirt/esphttpd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bjpirt/esphttpd/merges","archive_url":"https://api.github.com/repos/bjpirt/esphttpd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bjpirt/esphttpd/downloads","issues_url":"https://api.github.com/repos/bjpirt/esphttpd/issues{/number}","pulls_url":"https://api.github.com/repos/bjpirt/esphttpd/pulls{/number}","milestones_url":"https://api.github.com/repos/bjpirt/esphttpd/milestones{/number}","notifications_url":"https://api.github.com/repos/bjpirt/esphttpd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bjpirt/esphttpd/labels{/name}","releases_url":"https://api.github.com/repos/bjpirt/esphttpd/releases{/id}","created_at":"2014-10-31T17:41:24Z","updated_at":"2015-03-06T21:01:06Z","pushed_at":"2015-03-09T11:48:49Z","git_url":"git://github.com/bjpirt/esphttpd.git","ssh_url":"git@github.com:bjpirt/esphttpd.git","clone_url":"https://github.com/bjpirt/esphttpd.git","svn_url":"https://github.com/bjpirt/esphttpd","homepage":null,"size":650,"stargazers_count":5,"watchers_count":5,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":5,"default_branch":"master"}},"base":{"label":"bjpirt:master","ref":"master","sha":"95ac5cd948cca2f1162e64f4e770189b5a8a46e8","user":{"login":"bjpirt","id":186499,"avatar_url":"https://avatars.githubusercontent.com/u/186499?v=3","gravatar_id":"","url":"https://api.github.com/users/bjpirt","html_url":"https://github.com/bjpirt","followers_url":"https://api.github.com/users/bjpirt/followers","following_url":"https://api.github.com/users/bjpirt/following{/other_user}","gists_url":"https://api.github.com/users/bjpirt/gists{/gist_id}","starred_url":"https://api.github.com/users/bjpirt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjpirt/subscriptions","organizations_url":"https://api.github.com/users/bjpirt/orgs","repos_url":"https://api.github.com/users/bjpirt/repos","events_url":"https://api.github.com/users/bjpirt/events{/privacy}","received_events_url":"https://api.github.com/users/bjpirt/received_events","type":"User","site_admin":false},"repo":{"id":26026461,"name":"esphttpd","full_name":"bjpirt/esphttpd","owner":{"login":"bjpirt","id":186499,"avatar_url":"https://avatars.githubusercontent.com/u/186499?v=3","gravatar_id":"","url":"https://api.github.com/users/bjpirt","html_url":"https://github.com/bjpirt","followers_url":"https://api.github.com/users/bjpirt/followers","following_url":"https://api.github.com/users/bjpirt/following{/other_user}","gists_url":"https://api.github.com/users/bjpirt/gists{/gist_id}","starred_url":"https://api.github.com/users/bjpirt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjpirt/subscriptions","organizations_url":"https://api.github.com/users/bjpirt/orgs","repos_url":"https://api.github.com/users/bjpirt/repos","events_url":"https://api.github.com/users/bjpirt/events{/privacy}","received_events_url":"https://api.github.com/users/bjpirt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bjpirt/esphttpd","description":"A fork of http://git.spritesserver.nl/esphttpd.git/","fork":false,"url":"https://api.github.com/repos/bjpirt/esphttpd","forks_url":"https://api.github.com/repos/bjpirt/esphttpd/forks","keys_url":"https://api.github.com/repos/bjpirt/esphttpd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bjpirt/esphttpd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bjpirt/esphttpd/teams","hooks_url":"https://api.github.com/repos/bjpirt/esphttpd/hooks","issue_events_url":"https://api.github.com/repos/bjpirt/esphttpd/issues/events{/number}","events_url":"https://api.github.com/repos/bjpirt/esphttpd/events","assignees_url":"https://api.github.com/repos/bjpirt/esphttpd/assignees{/user}","branches_url":"https://api.github.com/repos/bjpirt/esphttpd/branches{/branch}","tags_url":"https://api.github.com/repos/bjpirt/esphttpd/tags","blobs_url":"https://api.github.com/repos/bjpirt/esphttpd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bjpirt/esphttpd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bjpirt/esphttpd/git/refs{/sha}","trees_url":"https://api.github.com/repos/bjpirt/esphttpd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bjpirt/esphttpd/statuses/{sha}","languages_url":"https://api.github.com/repos/bjpirt/esphttpd/languages","stargazers_url":"https://api.github.com/repos/bjpirt/esphttpd/stargazers","contributors_url":"https://api.github.com/repos/bjpirt/esphttpd/contributors","subscribers_url":"https://api.github.com/repos/bjpirt/esphttpd/subscribers","subscription_url":"https://api.github.com/repos/bjpirt/esphttpd/subscription","commits_url":"https://api.github.com/repos/bjpirt/esphttpd/commits{/sha}","git_commits_url":"https://api.github.com/repos/bjpirt/esphttpd/git/commits{/sha}","comments_url":"https://api.github.com/repos/bjpirt/esphttpd/comments{/number}","issue_comment_url":"https://api.github.com/repos/bjpirt/esphttpd/issues/comments{/number}","contents_url":"https://api.github.com/repos/bjpirt/esphttpd/contents/{+path}","compare_url":"https://api.github.com/repos/bjpirt/esphttpd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bjpirt/esphttpd/merges","archive_url":"https://api.github.com/repos/bjpirt/esphttpd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bjpirt/esphttpd/downloads","issues_url":"https://api.github.com/repos/bjpirt/esphttpd/issues{/number}","pulls_url":"https://api.github.com/repos/bjpirt/esphttpd/pulls{/number}","milestones_url":"https://api.github.com/repos/bjpirt/esphttpd/milestones{/number}","notifications_url":"https://api.github.com/repos/bjpirt/esphttpd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bjpirt/esphttpd/labels{/name}","releases_url":"https://api.github.com/repos/bjpirt/esphttpd/releases{/id}","created_at":"2014-10-31T17:41:24Z","updated_at":"2015-03-06T21:01:06Z","pushed_at":"2015-03-09T11:48:49Z","git_url":"git://github.com/bjpirt/esphttpd.git","ssh_url":"git@github.com:bjpirt/esphttpd.git","clone_url":"https://github.com/bjpirt/esphttpd.git","svn_url":"https://github.com/bjpirt/esphttpd","homepage":null,"size":650,"stargazers_count":5,"watchers_count":5,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bjpirt/esphttpd/pulls/3"},"html":{"href":"https://github.com/bjpirt/esphttpd/pull/3"},"issue":{"href":"https://api.github.com/repos/bjpirt/esphttpd/issues/3"},"comments":{"href":"https://api.github.com/repos/bjpirt/esphttpd/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/bjpirt/esphttpd/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/bjpirt/esphttpd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bjpirt/esphttpd/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/bjpirt/esphttpd/statuses/c2a02f28ea7344b39c650a9329fa932f3603b8fd"}}}}