Skip to content

Commit 4069d68

Browse files
committed
REST: don't return a 302 unless explicitely configured to
1 parent 673de9f commit 4069d68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cache_rest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ static int _mapcache_cache_rest_get(mapcache_context *ctx, mapcache_cache *pcach
804804
char *url;
805805
apr_table_t *headers;
806806
_mapcache_cache_rest_tile_url(ctx, tile, &rcache->rest, &rcache->rest.get_tile, &url);
807-
if(tile->allow_redirect) {
807+
if(tile->allow_redirect && rcache->use_redirects) {
808808
tile->redirect = url;
809809
return MAPCACHE_SUCCESS;
810810
}

0 commit comments

Comments
 (0)