Skip to content

Instantly share code, notes, and snippets.

@lightsofapollo
Created March 26, 2015 08:20
Show Gist options
  • Save lightsofapollo/abf586640753fbdbb9d0 to your computer and use it in GitHub Desktop.
Save lightsofapollo/abf586640753fbdbb9d0 to your computer and use it in GitHub Desktop.
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