File tree Expand file tree Collapse file tree
src/main/java/cn/darkal/networkdiagnosis Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ android {
2525 applicationId " cn.darkal.networkdiagnosis"
2626 minSdkVersion 14
2727 targetSdkVersion 22
28- versionCode 18
29- versionName " 2.4.21 "
28+ versionCode 24
29+ versionName " 2.4.24 "
3030 // Enabling multidex support.
3131 multiDexEnabled true
3232 resConfigs " zh"
Original file line number Diff line number Diff line change @@ -77,10 +77,10 @@ public void initHarLog(int pos) {
7777
7878 addItem ("Request Header" );
7979 for (HarNameValuePair pair : harRequest .getHeaders ()) {
80- if (pair .getName ().equals ("Cookie" )) {
81- break ;
80+ // 不显示cookie
81+ if (!pair .getName ().equals ("Cookie" )) {
82+ addItem (pair .getName (), pair .getDecodeValue ());
8283 }
83- addItem (pair .getName (), pair .getDecodeValue ());
8484 }
8585
8686 if (harRequest .getCookies ().size () > 0 ) {
@@ -97,10 +97,9 @@ public void initHarLog(int pos) {
9797
9898 addItem ("Response Header" );
9999 for (HarNameValuePair pair : harResponse .getHeaders ()) {
100- if (pair .getName ().equals ("Cookie" )) {
101- break ;
100+ if (! pair .getName ().equals ("Cookie" )) {
101+ addItem ( pair . getName (), pair . getDecodeValue ()) ;
102102 }
103- addItem (pair .getName (), pair .getDecodeValue ());
104103 }
105104
106105 if (harResponse .getCookies ().size () > 0 ) {
Original file line number Diff line number Diff line change @@ -250,10 +250,11 @@ public void initProxyWebView() {
250250 webView .post (new Runnable () {
251251 @ Override
252252 public void run () {
253- ProxyUtils .setProxy (webView , "127.0.0.1" , SysApplication .proxyPort );
254- Log .e ("~~~~" , "initProxyWebView()" );
255- webView .loadUrl (urlText .getText () + "" );
256- isSetProxy = true ;
253+ if (ProxyUtils .setProxy (webView , "127.0.0.1" , SysApplication .proxyPort )){
254+ Log .e ("~~~~" , "initProxyWebView()" );
255+ webView .loadUrl (urlText .getText () + "" );
256+ isSetProxy = true ;
257+ }
257258 }
258259 });
259260 }
You can’t perform that action at this time.
0 commit comments