hunk.code_window: 	_, err := w.w.Write(args)
   	return err
   }
   func (w *httpResponseWriterRPCServer) WriteHeader(args int, reply *struct{}) error {
   	w.w.WriteHeader(args)
   	return nil
   }
  
hunk.labels: keep keep keep keep add keep keep keep keep
hunk.after_edit: 	// Check if args is a valid http status code. This prevents plugins from crashing the server with a panic.
   	// This is a copy of the checkWriteHeaderCode function in net/http/server.go in the go source.
   	if args < 100 || args > 999 {
   		w.log.Error(fmt.Sprintf("Plugin tried to write an invalid http status code: %v. Did not write the invalid header.", args))
   		return errors.New("invalid http status code")
   	}
  
hunk.file_path: plugin/http.go
hunk.type: add
file: language: go
  go:
    - 1.x
    - tip
  env:
    - GO111MODULE=on
  install:
    - go mod download
  script:
    - go test -race -v
  