We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e627b90 commit d531935Copy full SHA for d531935
src/IBM.WatsonDeveloperCloud/Http/Request.cs
@@ -81,6 +81,10 @@ public IRequest WithBodyContent(HttpContent body)
81
82
public IRequest WithHeader(string key, string value)
83
{
84
+ if (key == "Accept" && value.StartsWith("audio/", StringComparison.OrdinalIgnoreCase))
85
+ {
86
+ this.Message.Headers.Accept.Clear();
87
+ }
88
this.Message.Headers.TryAddWithoutValidation(key, value);
89
return this;
90
}
0 commit comments