)]}'
{"zaqarclient/transport/request.py":[{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"d4e5051262dfc6dc0b30fe8e742db06819799128","unresolved":false,"context_lines":[{"line_number":57,"context_line":"    # project id will be added as header."},{"line_number":58,"context_line":"    if (\u0027X-Project-Id\u0027 not in req.headers and"},{"line_number":59,"context_line":"            auth_opts.get(\"backend\") \u003d\u003d \"noauth\"):"},{"line_number":60,"context_line":"        req.headers[\u0027X-Project-Id\u0027] \u003d \"fake_project_id_for_noauth\""},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    if data is not None:"},{"line_number":63,"context_line":"        req.content \u003d json.dumps(data)"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_c31f4259","line":60,"updated":"2016-02-18 03:33:35.000000000","message":"Just a question, not bug:\nwhat will happen if no \u0027X-Project-Id\u0027 in req.headers? I mean we have req.headers[\u0027X-Project-Id\u0027] be {} by default. But this patch removed it by default. How about set the default value to \u0027\u0027 ?  :)","commit_id":"640f56a1dbe9682e600d1a2a4b430dca5559b51b"},{"author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"change_message_id":"2fa48b8ecda7de9aa521eb5a932d7d42daaa1c88","unresolved":false,"context_lines":[{"line_number":57,"context_line":"    # project id will be added as header."},{"line_number":58,"context_line":"    if (\u0027X-Project-Id\u0027 not in req.headers and"},{"line_number":59,"context_line":"            auth_opts.get(\"backend\") \u003d\u003d \"noauth\"):"},{"line_number":60,"context_line":"        req.headers[\u0027X-Project-Id\u0027] \u003d \"fake_project_id_for_noauth\""},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    if data is not None:"},{"line_number":63,"context_line":"        req.content \u003d json.dumps(data)"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_e7650d1e","line":60,"in_reply_to":"dae33548_c31f4259","updated":"2016-02-18 15:55:08.000000000","message":"This patch just makes sure dictionary or empty value will not be passed to the \"requests\" library as header.\n\nIn case of \"keystone\" auth, we can omit X-Project-Id header.\n\nIn case of \"noauth\" there must be non-empty X-Project-Id header of string type, so if the library user hasn\u0027t passed this header, we assign \"fake_project_id_for_noauth\". Technically, we can pass \u0027\u0027 (empty string) as header and Zaqar will accept it, but this seems to be bad: I opened a bug report here: https://bugs.launchpad.net/zaqar/+bug/1544328","commit_id":"640f56a1dbe9682e600d1a2a4b430dca5559b51b"}]}
