Fix MIME type not determined for small files

Authored by tommo on Jul 7 2019, 12:05 PM.

Description

Fix MIME type not determined for small files

Summary: Previously, LoadingDocumentImplPrivate::determineKind() was never called for files < HEADER_SIZE when transferred via KIO, which prevented to load them correctly.

Test Plan: Modify LoadingDocumentImpl::init() to make it always load files via KIO. Compile and execute documenttest. Before the fix it will be stuck in an endless loop. Afterwards it completes normally.

Reviewers: Gwenview, ngraham

Reviewed By: Gwenview, ngraham

Subscribers: ngraham, Gwenview

Tags: Gwenview

Differential Revision: https://phabricator.kde.org/D22305

Details

Committed
ngrahamJul 7 2019, 12:09 PM
Reviewer
Gwenview
Differential Revision
D22305: Fix MIME type not determined for small files
Parents
R260:8284074a76f6: Make KF5Purpose dependency optional
Branches
Unknown
Tags
Unknown