Commit Diff
- Commit:
7175f54d7fa1c85c2c468d7d7b6c7954e2f75a91
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
- Message:
- use an absolute URL in redirects generated by gotwebd I am going to be using HTTP::Tiny in upcoming regression tests and this HTTP client fails on redirects sent by gotwebd unless the URL is absolute.
- Actions:
- Patch | Tree
--- gotwebd/gotweb.c +++ gotwebd/gotweb.c @@ -77,7 +77,7 @@ gotweb_reply(struct request *c, int status, const char if (location) { if (tp_writes(c->tp, "Location: ") == -1 || - gotweb_render_url(c, location) == -1 || + gotweb_render_absolute_url(c, location) == -1 || tp_writes(c->tp, "\r\n") == -1) return -1; }