Skip to content

Commit 7411bab

Browse files
committed
move accept from header to query param
1 parent a47b18f commit 7411bab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IBM.WatsonDeveloperCloud.TextToSpeech.v1/TextToSpeechService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public System.IO.Stream Synthesize(Text text, string accept = null, string voice
125125
{
126126
var request = this.Client.WithAuthentication(this.UserName, this.Password)
127127
.PostAsync($"{this.Endpoint}/v1/synthesize");
128-
request.WithHeader("Accept", accept);
128+
request.WithArgument("accept", accept);
129129
if (!string.IsNullOrEmpty(voice))
130130
request.WithArgument("voice", voice);
131131
if (!string.IsNullOrEmpty(customizationId))

0 commit comments

Comments
 (0)