mirror of https://github.com/spikecodes/libreddit
c6487799ed
* Redirect /:id to canonical URL for post. This implements redirection of `/:id` (a short-form URL to a post) to the post's canonical URL. Libreddit issues a `HEAD /:id` to Reddit to get the canonical URL, and on success will send an HTTP 302 to a client with the canonical URL set in as the value of the `Location:` header. This also implements support for short IDs for non-ASCII posts, c/o spikecodes. Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com> |
||
---|---|---|
.. | ||
client.rs | ||
main.rs | ||
post.rs | ||
search.rs | ||
server.rs | ||
settings.rs | ||
subreddit.rs | ||
user.rs | ||
utils.rs |