Closed Bug 656201 Opened 13 years ago Closed 5 years ago

Rhino can't load scripts which are served gzip'd

Categories

(Rhino Graveyard :: Core, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INACTIVE

People

(Reporter: scott, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.57 Safari/534.24
Build Identifier: Rhino 1.7 release 2 2009 03 22

Loading a script from a server which serves the script gzip'd causes Rhino to break. Loading the same script from a server which does not gzip works fine. An example is http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML

Reproducible: Always

Steps to Reproduce:
1. start the Rhino REPL
2. enter "load('http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML')"
3. watch Rhino die

Actual Results:  
The screen fills with non-printable characters, interspersed with messages about syntax errors and illegal characters.

Expected Results:  
Returned to the REPL with the script loaded.
Works for me, the URL responds with uncompressed content and rhino loads it. Although the script fails with an error.

Closing. Bug management is now done here:
https://github.com/mozilla/rhino

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.