-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URL Preview should support 3xx URL redirection #1412
Labels
Comments
it's a simple task and it could generate preview for even more URLs.. @rodrigok any thoughts? |
@sampaiodiego agreed, can you do that? |
Simply update https://github.com/RocketChat/Rocket.Chat/blob/develop/packages/rocketchat-oembed/server/server.coffee#L34 to add using Coffeescript style if response.statusCode in [301, 302, 307] and response.headers.location? or by using undescore function if _.contains([301, 302, 307], response.statusCode) and response.headers.location? |
b3rton
added a commit
to b3rton/Rocket.Chat
that referenced
this issue
Dec 8, 2015
closed by #1597 |
engelgabriel
added a commit
that referenced
this issue
Dec 9, 2015
# By matthewmawby (2) and others # Via Gabriel Engel (2) and others * 'develop' of github.com:RocketChat/Rocket.Chat: fixes blockquote non-continous border - closes #1605 Removed trash can icon tabbed added code Added the code to fix issue #1579 Added in functionality recommended in issue #1412
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/RocketChat/Rocket.Chat/blob/develop/packages/rocketchat-oembed/server/server.coffee#L34
302 and 307 with 301 similar behavior, I think the 302 and 307 should also be supported.
302 Moved Temporarily
307 Temporary Redirect
The text was updated successfully, but these errors were encountered: