}
FullHttpRequest request = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, httpMethod, msg.path(), content);
request.headers().set(HttpHeaders.Names.USER_AGENT, env().userAgent());
if (msg instanceof InsertBucketRequest || msg instanceof UpdateBucketRequest) {
request.headers().set(HttpHeaders.Names.ACCEPT, "*/*");
request.headers().set(HttpHeaders.Names.CONTENT_TYPE, "application/x-www-form-urlencoded");
}
request.headers().set(HttpHeaders.Names.CONTENT_LENGTH, content.readableBytes());
addAuth(ctx, request, msg.bucket(), msg.password());