-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
如果我们直接使用generateUrl的返回值, 当参数中有一些[&]时,比如[C:itemType:A]&[C:city:SZ],就会出现鉴权失败的问题。
Request.generateUrl
String url = "https://" + requestHost + requestPath; if (requestMethod.equals("GET")) { url += Sign.buildParamStr1(params,requestMethod); }
Request.send
try { paramStr += key + '=' + URLEncoder.encode(requestParams.get(key).toString(),"utf-8"); } catch (UnsupportedEncodingException e) { result = "{\"code\":-2300,\"location\":\"com.qcloud.Common.Request:129\",\"message\":\"api sdk throw exception! " + e.toString().replace("\"", "\\\"") + "\"}"; }
Metadata
Metadata
Assignees
Labels
No labels