summaryrefslogtreecommitdiff
path: root/src/gmrequest.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-06 14:40:08 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-06 14:40:08 +0300
commit90c944ac0ca82ece56d61bfa6274c31decc95358 (patch)
treea9554d81064f4346392aac04f872ca578a089f25 /src/gmrequest.c
parent8c1bd54f5b09abc30eff7d65ead1dc1de1c32143 (diff)
Fetch content from cache when navigating back
Diffstat (limited to 'src/gmrequest.c')
-rw-r--r--src/gmrequest.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gmrequest.c b/src/gmrequest.c
index 692267a5..d2683135 100644
--- a/src/gmrequest.c
+++ b/src/gmrequest.c
@@ -9,6 +9,8 @@
9 9
10#include <SDL_timer.h> 10#include <SDL_timer.h>
11 11
12iDefineTypeConstruction(GmResponse)
13
12void init_GmResponse(iGmResponse *d) { 14void init_GmResponse(iGmResponse *d) {
13 d->statusCode = none_GmStatusCode; 15 d->statusCode = none_GmStatusCode;
14 init_String(&d->meta); 16 init_String(&d->meta);
@@ -343,7 +345,7 @@ const iString *url_GmRequest(const iGmRequest *d) {
343} 345}
344 346
345const iGmResponse *response_GmRequest(const iGmRequest *d) { 347const iGmResponse *response_GmRequest(const iGmRequest *d) {
346 iAssert(d->state == finished_GmRequestState); 348 iAssert(d->state != initialized_GmRequestState);
347 return &d->resp; 349 return &d->resp;
348} 350}
349 351