v0.7.0
- Async support - Added RMF content-type - Better file extension detection - Clarify installation instructions - Update README.md - Remove encryption keys from wtv-home:/home - Decode URI for support for files with urlencoded elements - Fixed MSTV Sim compatiblity - Fix a typo - Add nobind feature to configure external services - Add url accessor to wtv-home:/home for non-internal builds - Add wtv-tricks:/access?url= - Very initial HTTP Proxy work (won't work yet)
This commit is contained in:
11
hacktv_updsrv/ServiceVault/wtv-tricks/access.js
Normal file
11
hacktv_updsrv/ServiceVault/wtv-tricks/access.js
Normal file
@@ -0,0 +1,11 @@
|
||||
// Allow URL access outside our trusted minisrv
|
||||
|
||||
if (query['url']) var url = unescape(query['url']);
|
||||
else var url = "client:showalert?message=Please%20provide%20a%20%3Furl%3D%20with%20the%20url%20you%20would%20like%20to%20access.&buttonlabel1=Okay&buttonacction1=client:donothing"
|
||||
|
||||
headers = `200 OK
|
||||
wtv-visit: `+url+`
|
||||
Content-type: text/html`
|
||||
|
||||
|
||||
data = '';
|
||||
23
hacktv_updsrv/ServiceVault/wtv-tricks/blastcache.js
Normal file
23
hacktv_updsrv/ServiceVault/wtv-tricks/blastcache.js
Normal file
@@ -0,0 +1,23 @@
|
||||
headers = `200 OK
|
||||
wtv-expire-all: wtv-
|
||||
wtv-expire-all: http
|
||||
Content-type: text/html`
|
||||
|
||||
var visit_url = null;
|
||||
|
||||
if (request_headers['Referer']) visit_url = request_headers['Referer'];
|
||||
else if (query['return_to']) visit_url = query['return_to'];
|
||||
else visit_url = "client:goback";
|
||||
|
||||
data = `<html>
|
||||
<head>
|
||||
<meta
|
||||
http-equiv=refresh
|
||||
content="1; url=`+ visit_url +`"
|
||||
>
|
||||
<body bgcolor="black" text="gold" link="gold" vlink="gold" alink="gold">
|
||||
Successfully expired service URL cache<br>
|
||||
Any previously cached pages should be reloaded from the network.<br><br>
|
||||
<a href="`+visit_url+`">Not loading? Click here.</a>
|
||||
</body>
|
||||
</html>`;
|
||||
@@ -1,17 +0,0 @@
|
||||
200 OK
|
||||
wtv-noback-all: wtv-
|
||||
wtv-expire-all: wtv-
|
||||
Content-type: text/html
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta
|
||||
http-equiv=refresh
|
||||
content="1; url=wtv-home:/home?"
|
||||
>
|
||||
<body bgcolor="black" text="gold" link="gold" vlink="gold" alink="gold">
|
||||
Successfully expired service URL cache<br>
|
||||
Any previously cached pages should be reloaded from the network.<br><br>
|
||||
<a href="wtv-home:/home">Go Home</a>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user