Thanks a lot Olly!
I tried to do some research, here is my code, does it look OK?
```
r.Body = http.MaxBytesReader(w, r.Body, con.SizeLimit)
defer r.Body.Close()
_, err := io.Copy(ioutil.Discard, r.Body)
if err != nil {
ip := r.Header.Get("X-Real-Ip")
fmt.Println("someone just send an oversized request from", ip)
http.Error(w, "Request body exceeds the size limit", 405)
}else{
fmt.Fprintf(w, "You just sent a legitimate request to the server!")
}
```