add missing option to client.NewMessage (#1212)

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2020-02-18 14:18:59 +03:00 committed by GitHub
parent aa9a0a8d23
commit 6248f05f74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -291,6 +291,12 @@ func WithDialTimeout(d time.Duration) CallOption {
}
}
func WithMessageContentType(ct string) MessageOption {
return func(o *MessageOptions) {
o.ContentType = ct
}
}
// Request Options
func WithContentType(ct string) RequestOption {