summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index aeb0100..f79a111 100644
--- a/main.go
+++ b/main.go
@@ -73,7 +73,7 @@ func (handler BoxHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusBadRequest)
return
}
- token := r.Header.Get("X-Upload-Token")
+ token := r.Header.Get("X-Token")
if token != handler.token {
log.Println("unauthorized")
w.WriteHeader(http.StatusUnauthorized)