google/google-api-nodejs-client — pull request #92 by jbergknoff (2013-10-15 19:53:05+00:00)
Title: change to make youtube video insertion work

The API discovery gives a rootUrl for youtube video insertion with a trailing slash. Appending "/upload" to that in Request.prototype.generateUploadBody results in a request that gets rejected by YouTube. I'm not sure if "/upload" should be "upload" or if the rootUrl returned by discovery should not have a trailing slash. In either case, this non-destructive change resolves the symptom.