Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAccept Brotli-compressed HTTP responses #8156 #8192
Conversation
|
This looks like what I expected; thanks! Have you tested it manually? Easiest way to verify it's working is to comment out the branch on 427 and find a page that serves Brotli-encoded data (and therefore is full of garbage), then uncomment that branch and see that the page shows up correctly. |
|
@jdm Is there any site that serves Brotli-encoded data ? Or how can I verify this any other way ? |
|
@jdm It should be |
| @@ -16,6 +16,9 @@ path = "../util" | |||
| [dependencies.devtools_traits] | |||
| path = "../devtools_traits" | |||
|
|
|||
| [dependencies.brotli] | |||
| git = "https://github.com/ende76/brotli-rs" | |||
This comment has been minimized.
This comment has been minimized.
|
@nxnfufunezn You're right! Aso, https://http2.cloudflare.com/ supports Brotli encoding according to my Firefox network inspector. |
|
Oh I am using this python script : https://gist.github.com/nxnfufunezn/d3fe9c805004a94a262d for testing... |
|
Also, I think I need to add brotli here also https://github.com/servo/servo/blob/master/components/net/http_loader.rs#L156 |
|
Even better! That looks like something we could turn into an automated test, like this one: http://mxr.mozilla.org/servo/source/tests/wpt/web-platform-tests/XMLHttpRequest/resources/gzip.py?force=1 |
|
Yep, you're correct. |
|
okay I will do that also.. |
d1a0431
to
05ca36b
|
|
|
Here is what I have done so far https://gist.github.com/nxnfufunezn/220bd5dc1dfb590bb8d6 |
|
@nxnfufunezn That looks really good! |
05ca36b
to
58207c0
|
Looks great! We just need to rebase this to get the proper manifest output, as described in the comment. Please also include the Cargo.lock changes, like @frewsxcv pointed out. Reviewed 3 of 3 files at r1, 6 of 6 files at r2. tests/wpt/mozilla/meta/MANIFEST.json, line 3806 [r2] (raw file): Comments from the review on Reviewable.io |
|
tests/wpt/mozilla/tests/mozilla/resources/brotli.py, line 5 [r2] (raw file):
https://docs.python.org/2/library/stdtypes.html#dict.get Comments from the review on Reviewable.io |
|
tests/wpt/mozilla/tests/mozilla/resources/brotli.py, line 5 [r2] (raw file): Comments from the review on Reviewable.io |
|
tests/wpt/mozilla/tests/mozilla/resources/brotli.py, line 5 [r2] (raw file): Comments from the review on Reviewable.io |
|
tests/wpt/mozilla/tests/mozilla/resources/brotli.py, line 5 [r2] (raw file): Comments from the review on Reviewable.io |
|
@bors-servo: r+ |
|
|
Accept Brotli-compressed HTTP responses #8156 r? @jdm <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8192) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
Accept Brotli-compressed HTTP responses #8156 r? @jdm <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8192) <!-- Reviewable:end -->
|
|
|
@bors-servo: retry |
|
|
|
|
|
@bors-servo retry |
|
|
|
|

nxnfufunezn commentedOct 25, 2015
r? @jdm