uweb 1057

master
James Feng Cao 3 months ago
parent a46482ada7
commit 93e3051e15

@ -25,5 +25,3 @@
[tildegit](https://tildegit.org/jamesfengcao/uweb/releases)
[pagure](https://releases.pagure.org/uwebapk/)
[mcbebbs](http://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.children[iTab].loadURL(rurl,{postData:data,extraHeaders:'Content-Type: application/x-www-form-urlencoded'});
tabs.children[iTab].loadURL(rurl,{postData:data,extraHeaders:headers});
return;
}
case 113: //i:q for multiple queries

Loading…
Cancel
Save