Fix MIME type not determined for small files

Authored by tommo on Jul 7 2019, 10:22 AM.



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.

Diff Detail

R260 Gwenview
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
tommo requested review of this revision.Jul 7 2019, 10:22 AM
tommo created this revision.
tommo edited the summary of this revision. (Show Details)Jul 7 2019, 10:25 AM
ngraham accepted this revision.Jul 7 2019, 12:08 PM
ngraham added a subscriber: ngraham.


This revision is now accepted and ready to land.Jul 7 2019, 12:08 PM
This revision was automatically updated to reflect the committed changes.