summaryrefslogtreecommitdiff
path: root/src/gmrequest.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-12-07 21:31:56 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-12-07 21:31:56 +0200
commitf60c945da324c82eb0d4c10ffa5ba9e48bbe6141 (patch)
tree78df140328302700f2b84b70c4ba5ef75d36d6cd /src/gmrequest.c
parent73c96402a21872dba8999caba8f4374a91f0d8e4 (diff)
Set REQUEST_URL in the MIME hook environment
This time without a race. IssueID #90
Diffstat (limited to 'src/gmrequest.c')
-rw-r--r--src/gmrequest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gmrequest.c b/src/gmrequest.c
index fe026a5b..884486b3 100644
--- a/src/gmrequest.c
+++ b/src/gmrequest.c
@@ -263,8 +263,8 @@ static void requestFinished_GmRequest_(iGmRequest *d, iTlsRequest *req) {
263 unlock_Mutex(d->mtx); 263 unlock_Mutex(d->mtx);
264 /* Check for mimehooks. */ 264 /* Check for mimehooks. */
265 if (d->isRespFiltered && d->state == finished_GmRequestState) { 265 if (d->isRespFiltered && d->state == finished_GmRequestState) {
266 setenv("REQUEST_URL", cstr_String(&d->url), 1); 266 iBlock *xbody =
267 iBlock *xbody = tryFilter_MimeHooks(mimeHooks_App(), &d->resp->meta, &d->resp->body); 267 tryFilter_MimeHooks(mimeHooks_App(), &d->resp->meta, &d->resp->body, &d->url);
268 if (xbody) { 268 if (xbody) {
269 lock_Mutex(d->mtx); 269 lock_Mutex(d->mtx);
270 clear_String(&d->resp->meta); 270 clear_String(&d->resp->meta);