Skip to content

Commit

Permalink
Add content-length manually to microsoft request
Browse files Browse the repository at this point in the history
  • Loading branch information
jishi committed Jul 26, 2017
1 parent 768804c commit 59d8d43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/tts-providers/microsoft.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ function microsoft(phrase, voiceName) {
'X-Microsoft-OutputFormat': 'riff-16khz-16bit-mono-pcm',
'X-Search-AppId': APP_ID,
'X-Search-ClientID': INSTANCE_ID,
'User-Agent': 'node-sonos-http-api'
'User-Agent': 'node-sonos-http-api',
'Content-Length': ssml.length
},
body: ssml
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sonos-http-api",
"version": "1.4.1",
"version": "1.4.2",
"description": "A simple node app for controlling a Sonos system with basic HTTP requests",
"scripts": {
"start": "node server.js"
Expand Down

0 comments on commit 59d8d43

Please sign in to comment.