Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
haoqu.ma
/
gotty
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ddbaa983
authored
Aug 13, 2016
by
Iwasaki Yudai
Committed by
GitHub
Aug 13, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #102 from skeltoac/auth-token-content-type
Set content-type on auth_token.js
2 parents
be07d420
ac491530
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
app/app.go
app/app.go
View file @
ddbaa98
...
@@ -379,6 +379,7 @@ func (app *App) handleCustomIndex(w http.ResponseWriter, r *http.Request) {
...
@@ -379,6 +379,7 @@ func (app *App) handleCustomIndex(w http.ResponseWriter, r *http.Request) {
}
}
func
(
app
*
App
)
handleAuthToken
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
func
(
app
*
App
)
handleAuthToken
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
w
.
Header
()
.
Set
(
"Content-Type"
,
"application/javascript"
)
w
.
Write
([]
byte
(
"var gotty_auth_token = '"
+
app
.
options
.
Credential
+
"';"
))
w
.
Write
([]
byte
(
"var gotty_auth_token = '"
+
app
.
options
.
Credential
+
"';"
))
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment