Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/Tencent/vConsole into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Maizify committed Apr 10, 2018
2 parents 1a777b1 + be5ce49 commit 2148872
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/network/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class VConsoleNetworkTab extends VConsolePlugin {

// update status
item.readyState = XMLReq.readyState;
item.status = XMLReq.status;
if (XMLReq.readyState > 1) item.status = XMLReq.status;
item.responseType = XMLReq.responseType;

if (XMLReq.readyState == 0) {
Expand Down Expand Up @@ -358,7 +358,7 @@ class VConsoleNetworkTab extends VConsolePlugin {

let query = XMLReq._url.split('?'); // a.php?b=c&d=?e => ['a.php', 'b=c&d=', '?e']
item.url = query.shift(); // => ['b=c&d=', '?e']

if (query.length > 0) {
item.getData = {};
query = query.join('?'); // => 'b=c&d=?e'
Expand All @@ -370,7 +370,7 @@ class VConsoleNetworkTab extends VConsolePlugin {
}

if (item.method == 'POST') {

// save POST data
if (tool.isString(data)) {
let arr = data.split('&');
Expand Down

0 comments on commit 2148872

Please sign in to comment.