Commit Diff
- Commit:
4113e6853e3344ea50288e4cd820f0a88b76e37e
- From:
- Stefan Sperling <stsp@stsp.name>
- 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 @@ -79,7 +79,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; }