Project

General

Profile

Bug #73 ยป fix_authenticated_download.patch

Soren Stoutner, 01/23/2017 01:18 PM

View differences:

app/src/main/java/com/stoutner/privacybrowser/activities/MainWebView.java
1514 1514
        // Parse `downloadUrl`.
1515 1515
        DownloadManager.Request downloadRequest = new DownloadManager.Request(Uri.parse(downloadUrl));
1516 1516

  
1517
        // Pass Cookies to DownloadManager if Cookies are enabled
1518
        if (cookieManager.hasCookies() && cookieManager.acceptCookie()) {
1519
            String cookie = cookieManager.getCookie(downloadUrl);
1520
            downloadRequest.addRequestHeader("Cookie", cookie);
1521
        }
1522

  
1517 1523
        // Get the file name from `dialogFragment`.
1518 1524
        EditText downloadFileNameEditText = (EditText) dialogFragment.getDialog().findViewById(R.id.download_file_name);
1519 1525
        String fileName = downloadFileNameEditText.getText().toString();
1520
- 
    (1-1/1)