diff options
| author | Julian Hurst <julian.hurst@digdash.com> | 2025-01-23 14:50:03 +0100 |
|---|---|---|
| committer | Julian Hurst <julian.hurst@digdash.com> | 2025-01-23 14:50:03 +0100 |
| commit | 0af48813e74af53cc0b9c93400a78c19e7aacb2f (patch) | |
| tree | 1f54f8f56c4d29e943c2f9f950a92af8715798f5 /main.go | |
| parent | 79fde8d68f3366415cffd0da5022a3582438b468 (diff) | |
| download | box-0af48813e74af53cc0b9c93400a78c19e7aacb2f.tar.gz | |
X-Upload-Token -> X-Token and flesh out index.html
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
