"net/http"
"os"
"regexp"
- "runtime"
"strconv"
"strings"
"syscall"
}
func PutBlockHandler(resp http.ResponseWriter, req *http.Request) {
- // Garbage collect after each PUT. Fixes #2865.
- // See also GetBlockHandler.
- defer runtime.GC()
-
hash := mux.Vars(req)["hash"]
// Detect as many error conditions as possible before reading