GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix:Header信息显示不完全 · beansoft/AndroidHttpCapture@e78d1ce

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • app
    • build.gradle
    • src/main/java/cn/darkal/networkdiagnosis
      • Activity
        • HarDetailActivity.java
      • Fragment
        • WebViewFragment.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎app/build.gradle‎

Copy file name to clipboardExpand all lines: app/build.gradle
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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"
Collapse file

‎app/src/main/java/cn/darkal/networkdiagnosis/Activity/HarDetailActivity.java‎

Copy file name to clipboardExpand all lines: app/src/main/java/cn/darkal/networkdiagnosis/Activity/HarDetailActivity.java
+5-6Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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) {
Collapse file

‎app/src/main/java/cn/darkal/networkdiagnosis/Fragment/WebViewFragment.java‎

Copy file name to clipboardExpand all lines: app/src/main/java/cn/darkal/networkdiagnosis/Fragment/WebViewFragment.java
+5-4Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.