Skip to content

Commit 49b1725

Browse files
committed
Refine code
1 parent 2e5e597 commit 49b1725

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

pyarmor/try/client.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,8 @@ const send_request = (method, url, data, onsuccess, onerror) => {
6969
const req = new Request(url)
7070
const headers = new Headers()
7171

72-
// 只是为了开发测试使用, admin 用户和密码
73-
// 'WWW-Authenticate': 'Basic YWRtaW46YWRtaW4='
74-
// headers.append('Authorization', 'Basic YWRtaW46YWRtaW4=')
75-
76-
// flyuser 用户的密码 "(thxjv!t8-F9*9j!q=)"
77-
const username = `flyuser-pyarmor`
78-
const basicauth = btoa(`${username}:(thxjv!t8-F9*9j!q=)`)
79-
headers.append('Authorization', `Basic ${basicauth}`)
80-
72+
// flyuser-2
73+
headers.append('Authorization', 'Basic Zmx5dXNlci0yOih0aHhqdiF0OC1GOSo5aiFxPSk=')
8174

8275
// headers.append("Content-Type", "application/octet-stream")
8376
if (method === 'POST' || method === 'PUT')

0 commit comments

Comments
 (0)