Commit 093b1304 authored by Łukasz Nowak's avatar Łukasz Nowak

XXX software/rapid-cdn: Fix inconsistency

Empty path shall result with /, not with an empty string. Even if it is
handled by some backends, it's a kind of a lie, especially, when additional
path from the request come in.

XXX - is that really the place to fix it?
parent 530f9a8b
......@@ -50,7 +50,7 @@ md5sum = d56e2cfab274cbbbe5b387f2f6e417df
[template-backend-haproxy-configuration]
_update_hash_filename_ = templates/backend-haproxy.cfg.in
md5sum = 13942d8f5525b748cf3cfc2665a87f63
md5sum = f8acde3585580b82d20e341ffae7e517
[template-empty]
_update_hash_filename_ = templates/empty.in
......
......@@ -94,7 +94,7 @@ frontend https-backend
backend {{ slave_instance['slave_reference'] }}-{{ scheme }}
{%- set hostname = info_dict['hostname'] %}
{%- set port = info_dict['port'] %}
{%- set path_list = [info_dict['path'].rstrip('/')] %}
{%- set path_list = [info_dict['path'].rstrip('/') or '/'] %}
{%- set query = info_dict['query'] %}
{%- if query %}
{%- do path_list.append(query) %}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment