-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't GET any of ZeroSites #752
Comments
You need to add an Accept header: curl -H "Accept: text/html" http:https://127.0.0.1:43110/Stats requests.get('http:https://127.0.0.1:43110/Stats', headers = {"Accept": "text/html"}).text ZeroNet now needs this header to check for XSS requests. You can refer to #728. |
MuxZeroNet
added a commit
to MuxZeroNet/ZeroNet
that referenced
this issue
Jan 9, 2017
My bad, thanks for pointing me. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For some time, i've noticed that any of my tries to GET any of Zeronet pages causes to 500 server error.
I've noticed it only after 1800 build, but it could start before.
Server error
Err: KeyError: 'HTTP_ACCEPT' in UiServer.py line 81 > UiRequest.py line 82 > UiRequest.py line 199
Please report it if you think this an error.
Details:
{
"GATEWAY_INTERFACE": "CGI/1.1",
"HTTP_CONNECTION": "TE, close",
"HTTP_HOST": "127.0.0.1:43110",
"HTTP_TE": "deflate,gzip;q=0.3",
"HTTP_USER_AGENT": "Qzja-bot/0.1",
"PATH_INFO": "/Stats",
"QUERY_STRING": "",
"REMOTE_ADDR": "127.0.0.1",
"REMOTE_PORT": "33056",
"REQUEST_METHOD": "GET",
"SCRIPT_NAME": "",
"SERVER_NAME": "kontur3",
"SERVER_PORT": "43110",
"SERVER_PROTOCOL": "HTTP/1.1",
"SERVER_SOFTWARE": "gevent/1.1 Python/2.7",
"arguments": {
"action": "main",
"batch": false,
"bit_resolver": "1Name2NXVi1RDPDgf5617UoW7xA6YrhM9F",
"coffeescript_compiler": "type %s | tools\coffee\coffee.cmd",
"config_file": "zeronet.conf",
"connected_limit": 6,
"data_dir": "data",
"debug": false,
"debug_gevent": false,
"debug_socket": false,
"disable_db": false,
"disable_encryption": false,
"disable_sslcompression": true,
"disable_udp": false,
"fileserver_ip": "*",
"fileserver_port": 15441,
"fix_float_decimals": false,
"homepage": "1HeLLo4uzjaLetFx6NH3PMwFP3qbRbTf3D",
"ip_external": null,
"keep_ssl_cert": false,
"language": "ru",
"log_dir": "log",
"max_files_opened": 2048,
"msgpack_purepython": true,
"open_browser": "default_browser",
"optional_limit": "10%",
"proxy": null,
"size_limit": 10,
"stream_downloads": false,
"tor": "enable",
"tor_controller": "127.0.0.1:9051",
"tor_proxy": "127.0.0.1:9050",
"trackers": [
"zero:https://boot3rdez4rzn36x.onion:15441",
"zero:https://boot.zeronet.io#f36ca555bee6ba216b14d10f38c16f7769ff064e0e37d887603548cc2e64191d:15441",
"udp:https://tracker.coppersurfer.tk:6969",
"udp:https://tracker.leechers-paradise.org:6969",
"udp:https://9.rarbg.com:2710",
"http:https://tracker.tordb.ml:6881/announce",
"http:https://explodie.org:6969/announce",
"http:https://tracker1.wasabii.com.tw:6969/announce"
],
"trackers_file": false,
"ui_ip": "127.0.0.1",
"ui_port": 43110,
"ui_restrict": false,
"updatesite": "1UPDatEDxnvHDo7TXvq6AEBARfNkyfxsp",
"use_openssl": true,
"use_tempfiles": false,
"verbose": false
},
"plugins": [
"AnnounceZero",
"CryptMessage",
"MergerSite",
"Newsfeed",
"OptionalManager",
"PeerDb",
"Sidebar",
"Stats",
"TranslateSite",
"Trayicon",
"Zeroname"
],
"version_gevent": "1.1.2",
"version_python": "2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)]",
"version_zeronet": "0.5.1 r1806",
"wsgi.url_scheme": "http"
}
The text was updated successfully, but these errors were encountered: