uweb 1057
This commit is contained in:
parent
a46482ada7
commit 93e3051e15
3 changed files with 5 additions and 4 deletions
|
@ -25,5 +25,3 @@ |
|||
[tildegit](https://tildegit.org/jamesfengcao/uweb/releases) |
||||
|
||||
[pagure](https://releases.pagure.org/uwebapk/) |
||||
|
||||
[mcbebbs](https://pan.mcbebbs.cn/s/dJ4t8) |
|
@ -1,7 +1,7 @@ |
|||
<script>var verCode = %1%;</script> |
||||
<script> |
||||
(function(){ |
||||
let latestV = 1056; |
||||
let latestV = 1057; |
||||
try { |
||||
if(verCode>=latestV) {alert("Already up to date!");return;} |
||||
}catch(e){} |
||||
|
|
|
@ -592,6 +592,7 @@ You should have received a copy of the GNU General Public License along with thi |
|||
let iQ = url.indexOf('#',12); |
||||
let data; |
||||
let rurl; |
||||
let headers; |
||||
switch(subcmd){ |
||||
case 49: //i:p1 |
||||
{ |
||||
|
@ -605,16 +606,18 @@ You should have received a copy of the GNU General Public License along with thi |
|||
rurl = url.substring(4); |
||||
data = []; |
||||
} |
||||
headers = 'Content-Type: application/x-www-form-urlencoded'; |
||||
break; |
||||
} |
||||
case 50: //i:p2[url]#[filePath] post request with local file |
||||
rurl = url.substring(4,iQ); |
||||
data = [{type: 'file', filePath:url.substring(iQ+1)}]; |
||||
headers = 'Content-Type: multipart/form-data'; |
||||
break; |
||||
default: |
||||
return; |
||||
} |
||||
tabs.*****ren[iTab].loadURL(rurl,{postData:data,extraHeaders:'Content-Type: application/x-www-form-urlencoded'}); |
||||
tabs.*****ren[iTab].loadURL(rurl,{postData:data,extraHeaders:headers}); |
||||
return; |
||||
} |
||||
case 113: //i:q for multiple queries |
||||
|
|
Loading…
Reference in a new issue