Skip to content

Commit

Permalink
Actually use the right config option
Browse files Browse the repository at this point in the history
  • Loading branch information
ctdk committed Oct 6, 2015
1 parent 7d5b456 commit 1bd0f58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion file_store.go
Expand Up @@ -22,6 +22,7 @@ package main
import (
"encoding/json"
"fmt"
"github.com/ctdk/goiardi/config"
"github.com/ctdk/goiardi/filestore"
"net/http"
)
Expand Down Expand Up @@ -56,7 +57,7 @@ func fileStoreHandler(w http.ResponseWriter, r *http.Request) {
jsonErrorReport(w, r, fileErr.Error(), http.StatusOK)
return
}
r.Body = http.MaxBytesReader(w, r.Body, config.ObjMaxSize)
r.Body = http.MaxBytesReader(w, r.Body, config.Config.ObjMaxSize)
fileStore, err := filestore.New(chksum, r.Body, r.ContentLength)
if err != nil {
jsonErrorReport(w, r, err.Error(), http.StatusInternalServerError)
Expand Down

0 comments on commit 1bd0f58

Please sign in to comment.