summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-09-18 09:49:49 -0700
committerCorey Hulen <corey@hulen.com>2015-09-18 09:49:49 -0700
commit0ddabaf8dea72318198ea4e7c4f2844af284b808 (patch)
treed7860c6334743bf34b16ddd6f8506d05713ba40e /model
parent5a436fd447753124b3f7705ecb123ecf5762bc24 (diff)
parentc42a547b4fcd38e065ad2f702110395e9c76cb67 (diff)
downloadchat-0ddabaf8dea72318198ea4e7c4f2844af284b808.tar.gz
chat-0ddabaf8dea72318198ea4e7c4f2844af284b808.tar.bz2
chat-0ddabaf8dea72318198ea4e7c4f2844af284b808.zip
Merge pull request #717 from mattermost/fix-loadtest
Fix authentication for server load tests.
Diffstat (limited to 'model')
-rw-r--r--model/client.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/model/client.go b/model/client.go
index 9a89e8208..1e2ac59ac 100644
--- a/model/client.go
+++ b/model/client.go
@@ -790,4 +790,5 @@ func (c *Client) GetAccessToken(data url.Values) (*Result, *AppError) {
func (c *Client) MockSession(sessionToken string) {
c.AuthToken = sessionToken
+ c.AuthType = HEADER_BEARER
}