v0.9.37
- remove extra debugging - fix: could not unregister if multiple users existed - fix: http(s) proxy - add example in user_config.example.json to use public proxy - maybe fix: double reg - add support for "modpacks" to viewergen - first mod is "BackgroundSound" by @Sgeo (and https://github.com/elishacloud/dxwrapper)
This commit is contained in:
@@ -879,7 +879,8 @@ async function doHTTPProxy(socket, request_headers) {
|
||||
method: request_data.method,
|
||||
followAllRedirects: true,
|
||||
headers: {
|
||||
"User-Agent": request_headers["User-Agent"] || "WebTV"
|
||||
"User-Agent": request_headers["User-Agent"] || "WebTV",
|
||||
"Connection": "Keep-Alive"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1005,7 +1006,7 @@ function stripHeaders(headers_obj, whitelist) {
|
||||
var whitelisted_headers = new Array();
|
||||
var out_headers = new Array();
|
||||
out_headers.Response = headers_obj.Response;
|
||||
out_headers['wtv-connection-close'] = headers_obj['wtv-connection-close'];
|
||||
if (headers_obj['wtv-connection-close']) out_headers['wtv-connection-close'] = headers_obj['wtv-connection-close'];
|
||||
|
||||
// compare regardless of case
|
||||
Object.keys(whitelist).forEach(function (k) {
|
||||
|
||||
Reference in New Issue
Block a user