{"push_id":794874138,"size":4,"distinct_size":4,"ref":"refs/heads/3.x","head":"d38668ee63a06e9c610ab9dde13b98b2bad28c0c","before":"be189e88e7ce055456710ea4270823c735536a28","commits":[{"sha":"ca6f74214ee2f9d88a52a87e61af6e11ba3b287b","author":{"email":"d3c4e9bac7277f8750ce8b527800af0d79b0ff4a@gmail.com","name":"Brian Harrington"},"message":"3.x: fix content length\n\nThere were two cases where the content-length header would\nbe incorrect:\n\n1. If multi-byte characters were used in the payload. It was\n   returning the character length instead of the number of\n   bytes.\n2. If compression was used it was returning the size of the\n   raw data rather than the compressed size.\n\nThis change also makes the charset for the output UTF-8 rather\nthan using whatever the default is for the jdk.\n\nQuick verification was done on the command line for the compression\nuse-case to verify the content-length now matches expectations:\n\n```\n$ curl -vs 'http://localhost:8077/jars' 2>headers | wc -c; cat headers | grep -i content-length\n   31192\n< Content-length: 31192\n$ curl -vs 'http://localhost:8077/jars' -H'Accept-Encoding:gzip' 2>headers | wc -c; cat headers | grep -i content-length\n    2717\n< Content-length: 2717\n$ curl -vs 'http://localhost:8077/jars' -H'Accept-Encoding:gzip' 2>headers | gunzip -c | wc -c; cat headers | grep -i content-length\n   31192\n< Content-length: 2717\n```","distinct":true,"url":"https://api.github.com/repos/Netflix/karyon/commits/ca6f74214ee2f9d88a52a87e61af6e11ba3b287b"},{"sha":"37950a44c638b5273f44c4e508297858677bea95","author":{"email":"d3c4e9bac7277f8750ce8b527800af0d79b0ff4a@gmail.com","name":"Brian Harrington"},"message":"reduce number of copies\n\nSwitches to chunked encoding so we don't need to\nknow the length in advance. Also moves the conversion\nfrom json and compression to write directly to the\nstream.","distinct":true,"url":"https://api.github.com/repos/Netflix/karyon/commits/37950a44c638b5273f44c4e508297858677bea95"},{"sha":"838089aa556e5d2f070f164d73a77288d3bbdb9d","author":{"email":"d3c4e9bac7277f8750ce8b527800af0d79b0ff4a@gmail.com","name":"Brian Harrington"},"message":"remove unused import","distinct":true,"url":"https://api.github.com/repos/Netflix/karyon/commits/838089aa556e5d2f070f164d73a77288d3bbdb9d"},{"sha":"d38668ee63a06e9c610ab9dde13b98b2bad28c0c","author":{"email":"d2cd322542ca65205d8f3890f64e413106d64eb4@yahoo.com","name":"elandau"},"message":"Merge pull request #282 from brharrington/3.x-content-length\n\n3.x: fix content length","distinct":true,"url":"https://api.github.com/repos/Netflix/karyon/commits/d38668ee63a06e9c610ab9dde13b98b2bad28c0c"}]}