)]}'
{"ironic/api/middleware/parsable_error.py":[{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"4a2553c18ea98e9b2bf3a6d24fb2426db99b27f1","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        # The default for ironic is application/json. However, Pecan will try"},{"line_number":68,"context_line":"        # to output HTML errors if no Accept header is provided."},{"line_number":69,"context_line":"        if \u0027HTTP_ACCEPT\u0027 not in environ or environ[\u0027HTTP_ACCEPT\u0027] \u003d\u003d \u0027*/*\u0027:"},{"line_number":70,"context_line":"            environ[\u0027HTTP_ACCEPT\u0027] \u003d \u0027application/json\u0027"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"        app_iter \u003d self.app(environ, replacement_start_response)"},{"line_number":73,"context_line":"        if (state[\u0027status_code\u0027] // 100) not in (2, 3):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_923c70c1","line":70,"updated":"2018-09-25 03:14:54.000000000","message":"nice.","commit_id":"be09169c67b355504d73a609f014c1b1e3c40804"}],"ironic/tests/unit/api/test_root.py":[{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"af12598a21a773d3241031392223d8eda99e2663","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        self.assertEqual(http_client.METHOD_NOT_ALLOWED, response.status_int)"},{"line_number":49,"context_line":"        self.assertIn(\u0027Not Allowed\u0027, response.json[\u0027error_message\u0027])"},{"line_number":50,"context_line":"        self.assertNotIn(\u0027\u003chtml\u0027, response.json[\u0027error_message\u0027])"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"class TestV1Root(base.BaseApiTest):"},{"line_number":54,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_4cf48a5b","line":51,"updated":"2018-09-18 03:26:30.000000000","message":"okay, this may be a dumb question, but I didn\u0027t find a clue about how we assure these requests don\u0027t have accept header?","commit_id":"be09169c67b355504d73a609f014c1b1e3c40804"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"4a2553c18ea98e9b2bf3a6d24fb2426db99b27f1","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        self.assertEqual(http_client.METHOD_NOT_ALLOWED, response.status_int)"},{"line_number":49,"context_line":"        self.assertIn(\u0027Not Allowed\u0027, response.json[\u0027error_message\u0027])"},{"line_number":50,"context_line":"        self.assertNotIn(\u0027\u003chtml\u0027, response.json[\u0027error_message\u0027])"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"class TestV1Root(base.BaseApiTest):"},{"line_number":54,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_926550e5","line":51,"in_reply_to":"3f79a3b5_22090e30","updated":"2018-09-25 03:14:54.000000000","message":"I think requests likely ends up sending */* if it sends anything.... and that is covered in the middlware.","commit_id":"be09169c67b355504d73a609f014c1b1e3c40804"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d9a32dafa4150cbb3e303780627a2fed406fc839","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        self.assertEqual(http_client.METHOD_NOT_ALLOWED, response.status_int)"},{"line_number":49,"context_line":"        self.assertIn(\u0027Not Allowed\u0027, response.json[\u0027error_message\u0027])"},{"line_number":50,"context_line":"        self.assertNotIn(\u0027\u003chtml\u0027, response.json[\u0027error_message\u0027])"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"class TestV1Root(base.BaseApiTest):"},{"line_number":54,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_22090e30","line":51,"in_reply_to":"3f79a3b5_4cf48a5b","updated":"2018-09-18 12:28:51.000000000","message":"I hope the tests only send whatever we provide them and indeed https://github.com/openstack/ironic/blob/master/ironic/tests/unit/api/base.py does not seem to have any references to Accept.","commit_id":"be09169c67b355504d73a609f014c1b1e3c40804"}]}
