瀏覽代碼

fix(Android): Don't log the cookie when downloading file. (#1224)

trcoffman 5 年之前
父節點
當前提交
24702450f3
No account linked to committer's email address
共有 1 個檔案被更改,包括 0 行新增1 行删除
  1. 0
    1
      android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java

+ 0
- 1
android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java 查看文件

208
           String baseUrl = urlObj.getProtocol() + "://" + urlObj.getHost();
208
           String baseUrl = urlObj.getProtocol() + "://" + urlObj.getHost();
209
           String cookie = CookieManager.getInstance().getCookie(baseUrl);
209
           String cookie = CookieManager.getInstance().getCookie(baseUrl);
210
           request.addRequestHeader("Cookie", cookie);
210
           request.addRequestHeader("Cookie", cookie);
211
-          System.out.println("Got cookie for DownloadManager: " + cookie);
212
         } catch (MalformedURLException e) {
211
         } catch (MalformedURLException e) {
213
           System.out.println("Error getting cookie for DownloadManager: " + e.toString());
212
           System.out.println("Error getting cookie for DownloadManager: " + e.toString());
214
           e.printStackTrace();
213
           e.printStackTrace();