Created
March 26, 2015 08:20
-
-
Save lightsofapollo/abf586640753fbdbb9d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/main.go b/main.go | |
index 6ff480d..7c9b704 100644 | |
--- a/main.go | |
+++ b/main.go | |
@@ -8,7 +8,7 @@ import ( | |
"os" | |
"sync" | |
- stream "github.com/lightsofapollo/continuous-log-serve/writer" | |
+ stream "github.com/taskcluster/livelog/writer" | |
. "github.com/visionmedia/go-debug" | |
) | |
@@ -38,7 +38,7 @@ func startLogServe(stream *stream.Stream) { | |
// Authenticate the request with accessToken, this is good enough because | |
// live logs are short-lived | |
- if (r.URL.String()[5:] != accessToken) { | |
+ if r.URL.String()[5:] != accessToken { | |
w.Header().Set("Content-Type", "text/plain; charset=utf-8") | |
w.Header().Set("Access-Control-Allow-Origin", "*") | |
w.WriteHeader(401) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment