mirror of
https://github.com/3dmol/3Dmol.js.git
synced 2026-06-04 08:39:49 +09:00
move echo to python3
This commit is contained in:
6
echo.cgi
6
echo.cgi
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/env python3
|
||||
#fetchs a file - workaround for cross site scripting prevention
|
||||
import cgi,requests,sys
|
||||
|
||||
@@ -7,8 +7,6 @@ form = cgi.FieldStorage()
|
||||
url = form["url"].value
|
||||
|
||||
response = requests.get(url)
|
||||
print "Content-Type: text/text"
|
||||
print ""
|
||||
|
||||
sys.stdout.write("Content-Type: text/text\n\n")
|
||||
sys.stdout.write(response.text)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user