{"action":"created","comment":{"url":"https://api.github.com/repos/SergioBenitez/Rocket/pulls/comments/108862443","pull_request_review_id":29922518,"id":108862443,"diff_hunk":"@@ -21,3 +21,35 @@ fn index() -> &'static str {\n fn main() {\n     rocket::ignite().mount(\"/\", routes![index, upload]).launch();\n }\n+\n+#[cfg(test)]\n+mod test {\n+    use super::rocket;\n+    use rocket::testing::MockRequest;\n+    use rocket::http::{Status, ContentType};\n+    use rocket::http::Method::Post;\n+    use rocket::response::NamedFile;\n+    use std::io::Read;\n+\n+    #[test]\n+    fn test_raw_upload() {\n+        let text_to_upload = \"Text to be uploaded!\".to_string();\n+\n+        // Upload the body\n+        let rocket =","path":"examples/raw_upload/src/main.rs","position":19,"original_position":19,"commit_id":"a3385f1fc699bc180f770bda93601d230ccc369f","original_commit_id":"a3385f1fc699bc180f770bda93601d230ccc369f","user":{"login":"SergioBenitez","id":1480321,"avatar_url":"https://avatars0.githubusercontent.com/u/1480321?v=3","gravatar_id":"","url":"https://api.github.com/users/SergioBenitez","html_url":"https://github.com/SergioBenitez","followers_url":"https://api.github.com/users/SergioBenitez/followers","following_url":"https://api.github.com/users/SergioBenitez/following{/other_user}","gists_url":"https://api.github.com/users/SergioBenitez/gists{/gist_id}","starred_url":"https://api.github.com/users/SergioBenitez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergioBenitez/subscriptions","organizations_url":"https://api.github.com/users/SergioBenitez/orgs","repos_url":"https://api.github.com/users/SergioBenitez/repos","events_url":"https://api.github.com/users/SergioBenitez/events{/privacy}","received_events_url":"https://api.github.com/users/SergioBenitez/received_events","type":"User","site_admin":false},"body":"The style here isn't consistent. It should look like:\r\n\r\n```\r\nlet rocket = rocket::ignite()\r\n    .mount(...);\r\n```   ","created_at":"2017-03-30T07:58:20Z","updated_at":"2017-03-30T08:01:38Z","html_url":"https://github.com/SergioBenitez/Rocket/pull/237#discussion_r108862443","pull_request_url":"https://api.github.com/repos/SergioBenitez/Rocket/pulls/237","_links":{"self":{"href":"https://api.github.com/repos/SergioBenitez/Rocket/pulls/comments/108862443"},"html":{"href":"https://github.com/SergioBenitez/Rocket/pull/237#discussion_r108862443"},"pull_request":{"href":"https://api.github.com/repos/SergioBenitez/Rocket/pulls/237"}}},"pull_request":{"url":"https://api.github.com/repos/SergioBenitez/Rocket/pulls/237","id":111932896,"html_url":"https://github.com/SergioBenitez/Rocket/pull/237","diff_url":"https://github.com/SergioBenitez/Rocket/pull/237.diff","patch_url":"https://github.com/SergioBenitez/Rocket/pull/237.patch","issue_url":"https://api.github.com/repos/SergioBenitez/Rocket/issues/237","number":237,"state":"open","locked":false,"title":"Added test to examples/raw_upload","user":{"login":"alanstoate","id":16761755,"avatar_url":"https://avatars3.githubusercontent.com/u/16761755?v=3","gravatar_id":"","url":"https://api.github.com/users/alanstoate","html_url":"https://github.com/alanstoate","followers_url":"https://api.github.com/users/alanstoate/followers","following_url":"https://api.github.com/users/alanstoate/following{/other_user}","gists_url":"https://api.github.com/users/alanstoate/gists{/gist_id}","starred_url":"https://api.github.com/users/alanstoate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanstoate/subscriptions","organizations_url":"https://api.github.com/users/alanstoate/orgs","repos_url":"https://api.github.com/users/alanstoate/repos","events_url":"https://api.github.com/users/alanstoate/events{/privacy}","received_events_url":"https://api.github.com/users/alanstoate/received_events","type":"User","site_admin":false},"body":"Added a test for raw_upload","created_at":"2017-03-22T05:00:12Z","updated_at":"2017-03-30T08:01:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"723ca51ddfc8a93f7992f01b9dafee0372e04f53","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/SergioBenitez/Rocket/pulls/237/commits","review_comments_url":"https://api.github.com/repos/SergioBenitez/Rocket/pulls/237/comments","review_comment_url":"https://api.github.com/repos/SergioBenitez/Rocket/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SergioBenitez/Rocket/issues/237/comments","statuses_url":"https://api.github.com/repos/SergioBenitez/Rocket/statuses/a3385f1fc699bc180f770bda93601d230ccc369f","head":{"label":"alanstoate:add_raw_upload_example","ref":"add_raw_upload_example","sha":"a3385f1fc699bc180f770bda93601d230ccc369f","user":{"login":"alanstoate","id":16761755,"avatar_url":"https://avatars3.githubusercontent.com/u/16761755?v=3","gravatar_id":"","url":"https://api.github.com/users/alanstoate","html_url":"https://github.com/alanstoate","followers_url":"https://api.github.com/users/alanstoate/followers","following_url":"https://api.github.com/users/alanstoate/following{/other_user}","gists_url":"https://api.github.com/users/alanstoate/gists{/gist_id}","starred_url":"https://api.github.com/users/alanstoate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanstoate/subscriptions","organizations_url":"https://api.github.com/users/alanstoate/orgs","repos_url":"https://api.github.com/users/alanstoate/repos","events_url":"https://api.github.com/users/alanstoate/events{/privacy}","received_events_url":"https://api.github.com/users/alanstoate/received_events","type":"User","site_admin":false},"repo":{"id":84377796,"name":"Rocket","full_name":"alanstoate/Rocket","owner":{"login":"alanstoate","id":16761755,"avatar_url":"https://avatars3.githubusercontent.com/u/16761755?v=3","gravatar_id":"","url":"https://api.github.com/users/alanstoate","html_url":"https://github.com/alanstoate","followers_url":"https://api.github.com/users/alanstoate/followers","following_url":"https://api.github.com/users/alanstoate/following{/other_user}","gists_url":"https://api.github.com/users/alanstoate/gists{/gist_id}","starred_url":"https://api.github.com/users/alanstoate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanstoate/subscriptions","organizations_url":"https://api.github.com/users/alanstoate/orgs","repos_url":"https://api.github.com/users/alanstoate/repos","events_url":"https://api.github.com/users/alanstoate/events{/privacy}","received_events_url":"https://api.github.com/users/alanstoate/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alanstoate/Rocket","description":"A web framework for Rust.","fork":true,"url":"https://api.github.com/repos/alanstoate/Rocket","forks_url":"https://api.github.com/repos/alanstoate/Rocket/forks","keys_url":"https://api.github.com/repos/alanstoate/Rocket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alanstoate/Rocket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alanstoate/Rocket/teams","hooks_url":"https://api.github.com/repos/alanstoate/Rocket/hooks","issue_events_url":"https://api.github.com/repos/alanstoate/Rocket/issues/events{/number}","events_url":"https://api.github.com/repos/alanstoate/Rocket/events","assignees_url":"https://api.github.com/repos/alanstoate/Rocket/assignees{/user}","branches_url":"https://api.github.com/repos/alanstoate/Rocket/branches{/branch}","tags_url":"https://api.github.com/repos/alanstoate/Rocket/tags","blobs_url":"https://api.github.com/repos/alanstoate/Rocket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alanstoate/Rocket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alanstoate/Rocket/git/refs{/sha}","trees_url":"https://api.github.com/repos/alanstoate/Rocket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alanstoate/Rocket/statuses/{sha}","languages_url":"https://api.github.com/repos/alanstoate/Rocket/languages","stargazers_url":"https://api.github.com/repos/alanstoate/Rocket/stargazers","contributors_url":"https://api.github.com/repos/alanstoate/Rocket/contributors","subscribers_url":"https://api.github.com/repos/alanstoate/Rocket/subscribers","subscription_url":"https://api.github.com/repos/alanstoate/Rocket/subscription","commits_url":"https://api.github.com/repos/alanstoate/Rocket/commits{/sha}","git_commits_url":"https://api.github.com/repos/alanstoate/Rocket/git/commits{/sha}","comments_url":"https://api.github.com/repos/alanstoate/Rocket/comments{/number}","issue_comment_url":"https://api.github.com/repos/alanstoate/Rocket/issues/comments{/number}","contents_url":"https://api.github.com/repos/alanstoate/Rocket/contents/{+path}","compare_url":"https://api.github.com/repos/alanstoate/Rocket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alanstoate/Rocket/merges","archive_url":"https://api.github.com/repos/alanstoate/Rocket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alanstoate/Rocket/downloads","issues_url":"https://api.github.com/repos/alanstoate/Rocket/issues{/number}","pulls_url":"https://api.github.com/repos/alanstoate/Rocket/pulls{/number}","milestones_url":"https://api.github.com/repos/alanstoate/Rocket/milestones{/number}","notifications_url":"https://api.github.com/repos/alanstoate/Rocket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alanstoate/Rocket/labels{/name}","releases_url":"https://api.github.com/repos/alanstoate/Rocket/releases{/id}","deployments_url":"https://api.github.com/repos/alanstoate/Rocket/deployments","created_at":"2017-03-08T23:53:31Z","updated_at":"2017-03-08T23:53:33Z","pushed_at":"2017-03-22T10:44:56Z","git_url":"git://github.com/alanstoate/Rocket.git","ssh_url":"git@github.com:alanstoate/Rocket.git","clone_url":"https://github.com/alanstoate/Rocket.git","svn_url":"https://github.com/alanstoate/Rocket","homepage":"https://rocket.rs","size":1153,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SergioBenitez:master","ref":"master","sha":"ec92046d3ac3d8fc772b3cf4eba990726593b937","user":{"login":"SergioBenitez","id":1480321,"avatar_url":"https://avatars0.githubusercontent.com/u/1480321?v=3","gravatar_id":"","url":"https://api.github.com/users/SergioBenitez","html_url":"https://github.com/SergioBenitez","followers_url":"https://api.github.com/users/SergioBenitez/followers","following_url":"https://api.github.com/users/SergioBenitez/following{/other_user}","gists_url":"https://api.github.com/users/SergioBenitez/gists{/gist_id}","starred_url":"https://api.github.com/users/SergioBenitez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergioBenitez/subscriptions","organizations_url":"https://api.github.com/users/SergioBenitez/orgs","repos_url":"https://api.github.com/users/SergioBenitez/repos","events_url":"https://api.github.com/users/SergioBenitez/events{/privacy}","received_events_url":"https://api.github.com/users/SergioBenitez/received_events","type":"User","site_admin":false},"repo":{"id":54168759,"name":"Rocket","full_name":"SergioBenitez/Rocket","owner":{"login":"SergioBenitez","id":1480321,"avatar_url":"https://avatars0.githubusercontent.com/u/1480321?v=3","gravatar_id":"","url":"https://api.github.com/users/SergioBenitez","html_url":"https://github.com/SergioBenitez","followers_url":"https://api.github.com/users/SergioBenitez/followers","following_url":"https://api.github.com/users/SergioBenitez/following{/other_user}","gists_url":"https://api.github.com/users/SergioBenitez/gists{/gist_id}","starred_url":"https://api.github.com/users/SergioBenitez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergioBenitez/subscriptions","organizations_url":"https://api.github.com/users/SergioBenitez/orgs","repos_url":"https://api.github.com/users/SergioBenitez/repos","events_url":"https://api.github.com/users/SergioBenitez/events{/privacy}","received_events_url":"https://api.github.com/users/SergioBenitez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SergioBenitez/Rocket","description":"A web framework for Rust.","fork":false,"url":"https://api.github.com/repos/SergioBenitez/Rocket","forks_url":"https://api.github.com/repos/SergioBenitez/Rocket/forks","keys_url":"https://api.github.com/repos/SergioBenitez/Rocket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SergioBenitez/Rocket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SergioBenitez/Rocket/teams","hooks_url":"https://api.github.com/repos/SergioBenitez/Rocket/hooks","issue_events_url":"https://api.github.com/repos/SergioBenitez/Rocket/issues/events{/number}","events_url":"https://api.github.com/repos/SergioBenitez/Rocket/events","assignees_url":"https://api.github.com/repos/SergioBenitez/Rocket/assignees{/user}","branches_url":"https://api.github.com/repos/SergioBenitez/Rocket/branches{/branch}","tags_url":"https://api.github.com/repos/SergioBenitez/Rocket/tags","blobs_url":"https://api.github.com/repos/SergioBenitez/Rocket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SergioBenitez/Rocket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SergioBenitez/Rocket/git/refs{/sha}","trees_url":"https://api.github.com/repos/SergioBenitez/Rocket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SergioBenitez/Rocket/statuses/{sha}","languages_url":"https://api.github.com/repos/SergioBenitez/Rocket/languages","stargazers_url":"https://api.github.com/repos/SergioBenitez/Rocket/stargazers","contributors_url":"https://api.github.com/repos/SergioBenitez/Rocket/contributors","subscribers_url":"https://api.github.com/repos/SergioBenitez/Rocket/subscribers","subscription_url":"https://api.github.com/repos/SergioBenitez/Rocket/subscription","commits_url":"https://api.github.com/repos/SergioBenitez/Rocket/commits{/sha}","git_commits_url":"https://api.github.com/repos/SergioBenitez/Rocket/git/commits{/sha}","comments_url":"https://api.github.com/repos/SergioBenitez/Rocket/comments{/number}","issue_comment_url":"https://api.github.com/repos/SergioBenitez/Rocket/issues/comments{/number}","contents_url":"https://api.github.com/repos/SergioBenitez/Rocket/contents/{+path}","compare_url":"https://api.github.com/repos/SergioBenitez/Rocket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SergioBenitez/Rocket/merges","archive_url":"https://api.github.com/repos/SergioBenitez/Rocket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SergioBenitez/Rocket/downloads","issues_url":"https://api.github.com/repos/SergioBenitez/Rocket/issues{/number}","pulls_url":"https://api.github.com/repos/SergioBenitez/Rocket/pulls{/number}","milestones_url":"https://api.github.com/repos/SergioBenitez/Rocket/milestones{/number}","notifications_url":"https://api.github.com/repos/SergioBenitez/Rocket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SergioBenitez/Rocket/labels{/name}","releases_url":"https://api.github.com/repos/SergioBenitez/Rocket/releases{/id}","deployments_url":"https://api.github.com/repos/SergioBenitez/Rocket/deployments","created_at":"2016-03-18T02:50:18Z","updated_at":"2017-03-30T03:23:47Z","pushed_at":"2017-03-30T07:54:46Z","git_url":"git://github.com/SergioBenitez/Rocket.git","ssh_url":"git@github.com:SergioBenitez/Rocket.git","clone_url":"https://github.com/SergioBenitez/Rocket.git","svn_url":"https://github.com/SergioBenitez/Rocket","homepage":"https://rocket.rs","size":1192,"stargazers_count":1869,"watchers_count":1869,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":91,"mirror_url":null,"open_issues_count":49,"forks":91,"open_issues":49,"watchers":1869,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SergioBenitez/Rocket/pulls/237"},"html":{"href":"https://github.com/SergioBenitez/Rocket/pull/237"},"issue":{"href":"https://api.github.com/repos/SergioBenitez/Rocket/issues/237"},"comments":{"href":"https://api.github.com/repos/SergioBenitez/Rocket/issues/237/comments"},"review_comments":{"href":"https://api.github.com/repos/SergioBenitez/Rocket/pulls/237/comments"},"review_comment":{"href":"https://api.github.com/repos/SergioBenitez/Rocket/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SergioBenitez/Rocket/pulls/237/commits"},"statuses":{"href":"https://api.github.com/repos/SergioBenitez/Rocket/statuses/a3385f1fc699bc180f770bda93601d230ccc369f"}}}}
{"actor":{"display_login":"SergioBenitez"}}