Skip to content

Commit b513fae

Browse files
authored
Merge pull request #79139 from YutongTie-MSFT/patch-46
(AzureCXP) fixes MicrosftDocs/azure-docs#32721
2 parents d0469cd + 29a855b commit b513fae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/cognitive-services/Translator/tutorial-wpf-translation-csharp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ Now we're going to create method to detect the language of the source text (text
365365
HttpWebRequest detectLanguageWebRequest = (HttpWebRequest)WebRequest.Create(detectUri);
366366
detectLanguageWebRequest.Headers.Add("Ocp-Apim-Subscription-Key", COGNITIVE_SERVICES_KEY);
367367
detectLanguageWebRequest.Headers.Add("Ocp-Apim-Subscription-Region", "westus");
368-
detectLanguageWebRequest.ContentType = "app/json; charset=utf-8";
368+
detectLanguageWebRequest.ContentType = "application/json; charset=utf-8";
369369
detectLanguageWebRequest.Method = "POST";
370370

371371
// Send request
@@ -422,7 +422,7 @@ private string CorrectSpelling(string text)
422422
HttpWebRequest spellCheckWebRequest = (HttpWebRequest)WebRequest.Create(uri);
423423
spellCheckWebRequest.Headers.Add("Ocp-Apim-Subscription-Key", COGNITIVE_SERVICES_KEY);
424424
spellCheckWebRequest.Method = "POST";
425-
spellCheckWebRequest.ContentType = "app/x-www-form-urlencoded"; // doesn't work without this
425+
spellCheckWebRequest.ContentType = "application/x-www-form-urlencoded"; // doesn't work without this
426426
427427
// Create and send the request
428428
string body = "text=" + System.Web.HttpUtility.UrlEncode(text);

0 commit comments

Comments
 (0)