@@ -92,7 +92,7 @@
-
+
@@ -113,22 +113,25 @@
-
+
-
-
- | {{k}} |
- {{v}} |
+
+
+ | {{cookie.name}} |
+ {{cookie.value}} |
-
+
| 综合信息(UserAgent) |
- {{accessLog.userAgent}} |
+
+ {{accessLog.userAgent}}
+ [没有设置]
+ |
| IP |
diff --git a/web/views/@default/servers/server/log/viewPopup.js b/web/views/@default/servers/server/log/viewPopup.js
index 904b571e..59937653 100644
--- a/web/views/@default/servers/server/log/viewPopup.js
+++ b/web/views/@default/servers/server/log/viewPopup.js
@@ -5,6 +5,7 @@ Tea.context(function () {
this.tab = tab
}
+ // 请求Header
this.requestHeaders = []
if (this.accessLog.header != null) {
for (let k in this.accessLog.header) {
@@ -23,6 +24,7 @@ Tea.context(function () {
return (v1.name < v2.name) ? -1 : 1
})
+ // 响应Header
this.responseHeaders = []
if (this.accessLog.sentHeader != null) {
@@ -41,4 +43,31 @@ Tea.context(function () {
this.responseHeaders.sort(function (v1, v2) {
return (v1.name < v2.name) ? -1 : 1
})
+
+ // Cookie
+ this.cookies = []
+ if (this.accessLog.cookie != null) {
+ for (let k in this.accessLog.cookie) {
+ let v = this.accessLog.cookie[k]
+ if (typeof (v) != "string") {
+ continue
+ }
+ this.cookies.push({
+ name: k,
+ value: v
+ })
+ }
+ }
+ this.cookies.sort(function (v1, v2) {
+ if (v1.name.startsWith("_")) {
+ if (v2.name.startsWith("_")) {
+ return (v1.name < v2.name) ? -1 : 1
+ }
+ return -1
+ }
+ if (v2.name.startsWith("_")) {
+ return 1
+ }
+ return (v1.name.toUpperCase() < v2.name.toUpperCase()) ? -1 : 1
+ })
})
\ No newline at end of file
| |