-
Notifications
You must be signed in to change notification settings - Fork 1
feat: ssl-pinning适配harmony平台 #2
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
Conversation
45fffba
to
dd8f05a
Compare
@@ -0,0 +1,30 @@ | |||
import { Chain, Interceptor, Response, Type, Utils } from '@ohos/httpclient'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
加上版权头
return cookieJSON; | ||
} | ||
CookieStore.prototype.writeCookie = function writeCookie(hostname, cookieJSON) { | ||
console.info('liqi httpclient- CookieStore writeCookie: ' + hostname + ',cookieJSON:' + cookieJSON + ',path:' + this.path); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
删除日志
console.info("httpclient- loadCookie JSON :" + cookieJSON); | ||
let json = JSON.parse(cookieJSON); | ||
for (let cookieName in json) { | ||
console.info(JSON.stringify(json[cookieName])); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个日志删除,循环中尽量不要加打印,会影响性能
this.cookiesList = this.cookies[cookie.name] !== undefined ? this.cookies[cookie.name] : []; | ||
for (i = 0; i < this.cookiesList.length; i += 1) { | ||
this.collidableCookie = this.cookiesList[i]; | ||
console.info("httpclient- cookiejar cookie checking: " + this.collidableCookie.name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个也一样删除
Summary
1:ssl-pinning适配harmony平台
Test Plan
Checklist