registry: normalize comment formatting
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
cbc9de0abe
commit
b7f931e170
|
@ -268,7 +268,7 @@ func requiresAuth(w http.ResponseWriter, r *http.Request) bool {
|
||||||
value := fmt.Sprintf("FAKE-SESSION-%d", time.Now().UnixNano())
|
value := fmt.Sprintf("FAKE-SESSION-%d", time.Now().UnixNano())
|
||||||
cookie := &http.Cookie{Name: "session", Value: value, MaxAge: 3600}
|
cookie := &http.Cookie{Name: "session", Value: value, MaxAge: 3600}
|
||||||
http.SetCookie(w, cookie)
|
http.SetCookie(w, cookie)
|
||||||
//FIXME(sam): this should be sent only on Index routes
|
// FIXME(sam): this should be sent only on Index routes
|
||||||
value = fmt.Sprintf("FAKE-TOKEN-%d", time.Now().UnixNano())
|
value = fmt.Sprintf("FAKE-TOKEN-%d", time.Now().UnixNano())
|
||||||
w.Header().Add("X-Docker-Token", value)
|
w.Header().Add("X-Docker-Token", value)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue