jscad / OpenJSCAD.org

JSCAD is an open source set of modular, browser and command line tools for creating parametric 2D and 3D designs with JavaScript code. It provides a quick, precise and reproducible method for generating 3D models, and is especially useful for 3D printing applications.
https://openjscad.xyz/
MIT License
2.65k stars 513 forks source link

Feature Request – Support 'HTTP/1.1 301 Moved Permanently' - response #21

Closed ghost closed 11 years ago

ghost commented 11 years ago
~$ curl -i https://gist.github.com/koppi/5423648/raw/2fc3700d4ef051af1cbbaa7ca294917ddd610452/openlab-logo-02.js

leads to

HTTP/1.1 200 OK
...

and openjscad.org displays the file just fine.

~$ curl -i http://gist.github.com/koppi/5423648/raw/2fc3700d4ef051af1cbbaa7ca294917ddd610452/openlab-logo-02.js

leads to

HTTP/1.1 301 Moved Permanently
...
Connection: close
Location: https://gist.github.com/koppi/5423648/raw/2fc3700d4ef051af1cbbaa7ca294917ddd610452/openlab-logo-02.js
Vary: Accept-Encoding

<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>

and openjscad.org does not display the file.

Steps to re-produce: Open an url that has a HTTP redirect response in it, like

http://openjscad.org/#http://gist.github.com/koppi/5423648/raw/2fc3700d4ef051af1cbbaa7ca294917ddd610452/openlab-logo-02.js
ghost commented 11 years ago

Seems to work. Closing #21 .