diff options
author | =Corey Hulen <corey@hulen.com> | 2015-09-22 12:24:39 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-09-22 12:24:39 -0700 |
commit | fc71869a9638dbb4a715f85680915cf1c12a1ae4 (patch) | |
tree | 7fd7ddccbd3102e9af316ee0a17faa2106a77e7d | |
parent | 88e5a71e8c93b495cedaa07931a4f8052d9f12ed (diff) | |
parent | a44e8f0cd904d386caea410398dcaf7dbfd9c138 (diff) | |
download | chat-fc71869a9638dbb4a715f85680915cf1c12a1ae4.tar.gz chat-fc71869a9638dbb4a715f85680915cf1c12a1ae4.tar.bz2 chat-fc71869a9638dbb4a715f85680915cf1c12a1ae4.zip |
Merge branch 'master' into PLT-11-email
-rw-r--r-- | api/file.go | 3 | ||||
-rw-r--r-- | doc/developer/code-contribution.md | 21 | ||||
-rw-r--r-- | web/react/components/new_channel_modal.jsx | 2 |
3 files changed, 16 insertions, 10 deletions
diff --git a/api/file.go b/api/file.go index c85d241f3..acb18a7d4 100644 --- a/api/file.go +++ b/api/file.go @@ -24,6 +24,7 @@ import ( "io" "io/ioutil" "math" + "mime" "net/http" "net/url" "os" @@ -424,7 +425,7 @@ func getFile(c *Context, w http.ResponseWriter, r *http.Request) { w.Header().Set("Cache-Control", "max-age=2592000, public") w.Header().Set("Content-Length", strconv.Itoa(len(f))) - w.Header().Set("Content-Type", "") // need to provide proper Content-Type in the future + w.Header().Set("Content-Type", mime.TypeByExtension(filepath.Ext(filename))) w.Write(f) } diff --git a/doc/developer/code-contribution.md b/doc/developer/code-contribution.md index 325a67546..708b324a0 100644 --- a/doc/developer/code-contribution.md +++ b/doc/developer/code-contribution.md @@ -36,14 +36,19 @@ git checkout -b <branch name> For pull requests made by contributors not yet added to the approved contributor list, a reviewer may respond: ``` - Thanks @[username] for the pull request! - - Before we can review, we need to add you to the list of [approved contributors](https://docs.google.com/spreadsheets/d/1NTCeG-iL_VS9bFqtmHSfwETo5f-8MQ7oMDE5IUYJi_Y/pubhtml?gid=0&single=true). - Please help complete the Mattermost [contribution license agreement](http://www.mattermost.org/mattermost-contributor-agreement/), which is a standard procedure for many open source projects. More information is in the above link. - - Please let us know if you have any questions. - - We are very happy to have you join our growing community! +Thanks @[GITHUB_USERNAME] for the pull request! + +Before we can review, we need to add you to the list of approved contributors for the Mattermost project. + +**Please help complete the Mattermost [contribution license agreement](http://www.mattermost.org/mattermost-contributor-agreement/)?** + +This is a standard procedure for many open source projects. You can view a list of past contributors who have completed the form [here](https://docs.google.com/spreadsheets/d/1NTCeG-iL_VS9bFqtmHSfwETo5f-8MQ7oMDE5IUYJi_Y/pubhtml?gid=0&single=true). + +After completing the form, it should be processed within 24 hours and reviewers for your pull request will be able to proceed. + +Please let us know if you have any questions. + +We are very happy to have you join our growing community! ``` diff --git a/web/react/components/new_channel_modal.jsx b/web/react/components/new_channel_modal.jsx index 1488a1431..c43137744 100644 --- a/web/react/components/new_channel_modal.jsx +++ b/web/react/components/new_channel_modal.jsx @@ -150,7 +150,7 @@ export default class NewChannelModal extends React.Component { tabIndex='2' /> <p className='input__help'> - {'This is the purpose of your channel and helps others decide whether to join.'} + {'Description helps others decide whether to join this channel.'} </p> {serverError} </div> |