bug fix: headers do not allow underscore

master
Gogs 4 years ago
parent 864dfaf5c6
commit 5412c56620

@ -84,7 +84,8 @@ jx.cloudview.oauth.listen = function (key,callback,err) {
http.setHeader('code', encodeURIComponent(p.code))
http.setHeader('pid', 'authentication')
http.setHeader('platform', navigator.appName)
http.setHeader('redirect_uri', key)
http.setHeader('redirect-uri', key)
http.post(url, function (x) {
try{
var info = JSON.parse(x.responseText)
@ -93,7 +94,7 @@ jx.cloudview.oauth.listen = function (key,callback,err) {
}catch(e){
if (err != null){
err(e)
}
}else {console.log(e)}
}

Loading…
Cancel
Save