We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The rocketchat app had this piece of hubot scripts:
robot.router.post '/hubot/chatsecrets/:room', (req, res) -> room = req.params.room data = JSON.parse req.body.payload secret = data.secret robot.messageRoom room, "I have a secret: #{secret}" res.send 'OK'
However, the result of
curl -H "Content-Type: application/json" -d '{"secret":"C-TECH Astronomy"}' http://192.168.99.100/hubot/chatsecrets/general
is
<!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" class="__meteor-css__" href="/07e9d97b8e12c01705e17615668acd40a8ffe171.css?meteor_css_resource=true"> <link rel="stylesheet" type="text/css" class="__meteor-css__" href="/theme.css?59d36d21fe25c4c07290476a2120ffe4e44a93d7"> <script type="text/javascript">__meteor_runtime_config__ = JSON.parse(decodeURIComponent("%7B%22meteorRelease%22%3A%22METEOR%401.2.1%22%2C%22PUBLIC_SETTINGS%22%3A%7B%7D%2C%22ROOT_URL%22%3A%22http%3A%2F%2F192.168.99.100%22%2C%22ROOT_URL_PATH_PREFIX%22%3A%22%22%2C%22accountsConfigCalled%22%3Atrue%2C%22autoupdateVersion%22%3A%2271db065ae606fadcb6e74640de89262a8d11069c%22%2C%22autoupdateVersionRefreshable%22%3A%227bb482bcc494f1de3b186f8b6c4948684d0f60da%22%2C%22autoupdateVersionCordova%22%3A%223d7e0fa82f2d8d2ad850d2d17ad8f9d12edfb651%22%7D"));</script> <script type="text/javascript" src="/39a29733defdee7851bdb6fd0eb15c27d527c2aa.js?meteor_js_resource=true"></script> <title>Rocket.Chat</title> <meta charset="utf-8" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="expires" content="-1" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="fragment" content="!" /> <meta name="distribution" content="global" /> <meta name="rating" content="general" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" /> <meta name="msapplication-TileColor" content="#04436a"> <meta name="msapplication-TileImage" content="/images/logo/mstile-144x144.png?v=3"> <meta name="msapplication-config" content="/images/logo/browserconfig.xml?v=3"> <meta name="theme-color" content="#04436a"> <link rel="manifest" href="/images/logo/manifest.json?v=3"> <link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/nocfbnnmjnndkbipkabodnheejiegccf"> <link rel="icon" sizes="any" type="image/svg+xml" href="/assets/favicon.svg?v=3"> <link rel="icon" sizes="256x256" type="image/png" href="/assets/favicon_256.png?v=3"> <link rel="icon" sizes="192x192" type="image/png" href="/assets/favicon_192.png?v=3"> <link rel="icon" sizes="128x128" type="image/png" href="/assets/favicon_128.png?v=3"> <link rel="icon" sizes="96x96" type="image/png" href="/assets/favicon_96.png?v=3"> <link rel="icon" sizes="64x64" type="image/png" href="/assets/favicon_64.png?v=3"> <!-- <link rel="icon" sizes="48x48" type="image/png" href="/images/logo/favicon-48x48.png?v=3"> <link rel="icon" sizes="32x32" type="image/png" href="/images/logo/favicon-32x32.png?v=3"> <link rel="icon" sizes="16x16" type="image/png" href="/images/logo/favicon-16x16.png?v=3"> --> <link rel="shortcut icon" sizes="16x16 32x32 48x48" type="image/x-icon" href="/assets/favicon.ico?v=3" /> <link rel="apple-touch-icon" sizes="57x57" href="/images/logo/apple-touch-icon-57x57.png?v=3"> <link rel="apple-touch-icon" sizes="60x60" href="/images/logo/apple-touch-icon-60x60.png?v=3"> <link rel="apple-touch-icon" sizes="72x72" href="/images/logo/apple-touch-icon-72x72.png?v=3"> <link rel="apple-touch-icon" sizes="76x76" href="/images/logo/apple-touch-icon-76x76.png?v=3"> <link rel="apple-touch-icon" sizes="114x114" href="/images/logo/apple-touch-icon-114x114.png?v=3"> <link rel="apple-touch-icon" sizes="120x120" href="/images/logo/apple-touch-icon-120x120.png?v=3"> <link rel="apple-touch-icon" sizes="144x144" href="/images/logo/apple-touch-icon-144x144.png?v=3"> <link rel="apple-touch-icon" sizes="152x152" href="/images/logo/apple-touch-icon-152x152.png?v=3"> <link rel="apple-touch-icon" sizes="180x180" href="/images/logo/apple-touch-icon-180x180.png?v=3"> </head> <body> </body> </html>
The text was updated successfully, but these errors were encountered:
hubot listens on port 8080. If you have additional hubot issues please feel free to join us on #hubot
Sorry, something went wrong.
No branches or pull requests
The rocketchat app had this piece of hubot scripts:
However, the result of
is
The text was updated successfully, but these errors were encountered: