[1mdiff --git a/src/gmrequest.c b/src/gmrequest.c[m
[1mindex f4d770ab..0208dc94 100644[m
[1m--- a/src/gmrequest.c[m
[1m+++ b/src/gmrequest.c[m
[36m@@ -227,7 +227,12 @@[m [mstatic int processIncomingData_GmRequest_(iGmRequest *d, const iBlock *data) {[m
static void readIncoming_GmRequest_(iGmRequest *d, iTlsRequest *req) {[m
lock_Mutex(d->mtx);[m
iGmResponse *resp = d->resp;[m
[31m- iAssert(d->state != finished_GmRequestState); /* notifications out of order? */[m
[32m+[m[32m if (d->state == finished_GmRequestState || d->state == failure_GmRequestState) {[m
[32m+[m[32m /* The request has already finished or been aborted (e.g., invalid header). */[m
[32m+[m[32m delete_Block(readAll_TlsRequest(req));[m
[32m+[m[32m unlock_Mutex(d->mtx);[m
[32m+[m[32m return;[m
[32m+[m[32m }[m
iBlock * data = readAll_TlsRequest(req);[m
const int ubits = processIncomingData_GmRequest_(d, data);[m
iBool notifyUpdate = (ubits & 1) != 0;[m
[36m@@ -552,7 +557,7 @@[m [mvoid submit_GmRequest(iGmRequest *d) {[m
remove_Block(&path->chars, 0, 1);[m
}[m
#endif[m
[31m- iFile * f = new_File(path);[m
[32m+[m[32m iFile *f = new_File(path);[m
if (open_File(f, readOnly_FileMode)) {[m
/* TODO: Check supported file types: images, audio */[m
/* TODO: Detect text files based on contents? E.g., is the content valid UTF-8. */[m
text/plain
This content has been proxied by September (ba2dc).