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 upMade binary files show an info message instead of garbled text. #7956
Conversation
highfive
commented
Oct 10, 2015
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @pcwalton (or someone else) soon. |
|
This should solve #7706 I think. |
|
Thanks for doing this work! Reviewed 1 of 1 files at r1. components/script/dom/servohtmlparser.rs, line 135 [r1] (raw file): components/script/dom/servohtmlparser.rs, line 136 [r1] (raw file): Comments from the review on Reviewable.io |
|
-S-awaiting-review +S-needs-code-changes Reviewed 1 of 1 files at r2. components/script/dom/servohtmlparser.rs, line 142 [r2] (raw file): Comments from the review on Reviewable.io |
|
@jdm anything else I should change? |
|
Nope! Just squash these three commits into one and we're good to merge! Reviewed 1 of 1 files at r3, 1 of 1 files at r4. Comments from the review on Reviewable.io |
|
@jdm I might have done the squash incorrectly, doesn't seem like there's a problem though. |
|
@bors-servo: r+ |
|
|
Made binary files show an info message instead of garbled text. Content-types with the TopLevel "Application" such as * application/octet-stream * application/pdf now show an info message instead of trying to view binary data as html. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7956) <!-- Reviewable:end -->
|
|
|
Ah, presumably the server is giving us |
|
@jdm So I'm adding text/xhtml to the match statement right? |
|
@jdm http://www.w3.org/International/articles/serving-xhtml/ says xhtml has 3 possible mime types.
Which ones should I add? |
|
Hopefully just |
|
|
|
Any updates? |
|
@jdm @Manishearth Just updated the PR to compile and hopefully pass the xhtml tests. |
|
@bors-servo: r+ |
|
|
Made binary files show an info message instead of garbled text. Content-types with the TopLevel "Application" such as * application/octet-stream * application/pdf now show an info message instead of trying to view binary data as html. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7956) <!-- Reviewable:end -->
|
|
gkbrk commentedOct 10, 2015
Content-types with the TopLevel "Application" such as
now show an info message instead of trying to view binary data as html.