forked from KolibriOS/kolibrios
Fix #8: The "webview" web browser, started with the parameter, address with the name of the download file, downloads the same file multiple times.
This commit is contained in:
@@ -946,8 +946,10 @@ void CheckContentType()
|
|||||||
StopLoading();
|
StopLoading();
|
||||||
}
|
}
|
||||||
else if (content_type[0] == 'a') {
|
else if (content_type[0] == 'a') {
|
||||||
EventOpenDownloader(http.cur_url);
|
http_get_type = FILE;
|
||||||
StopLoading();
|
StopLoading();
|
||||||
|
if (!canvas.bufw) OpenPage(DEFAULT_URL); //Fixed: Browser was launched with file param
|
||||||
|
EventOpenDownloader(http.cur_url);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
WB1.custom_encoding = -1;
|
WB1.custom_encoding = -1;
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
enum {
|
enum {
|
||||||
PAGE=1, IMG
|
PAGE=1, IMG, FILE
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _cache
|
struct _cache
|
||||||
|
Reference in New Issue
Block a user