Этот коммит содержится в:
=Corey Hulen
2016-02-11 13:17:27 -08:00
родитель ab1f5acf4d
Коммит 35e3b8c40f
6 изменённых файлов: 4 добавлений и 6 удалений

Просмотреть файл

@@ -165,6 +165,10 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
} else {
// All api response bodies will be JSON formatted by default
w.Header().Set("Content-Type", "application/json")
if r.Method == "GET" {
w.Header().Set("Expires", "0")
}
}
if len(token) != 0 {