Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/masterking32/MasterHttpRelayVPN
/ encodeBytesToBase64
Function
encodeBytesToBase64
apps_script/cloudflare_worker.js:34–38 ·
view source on GitHub ↗
(bytes)
Source
from the content-addressed store, hash-verified
32
}
33
34
function
encodeBytesToBase64(bytes) {
35
let
bin =
""
;
36
for
(
let
i = 0; i < bytes.length; i++) bin += String.fromCharCode(bytes[i]);
37
return
btoa(bin);
38
}
39
40
function
sanitizeHeaders(h) {
41
const
out = {};
Callers
1
fetch
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected