Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix uploadContent #279

Merged
merged 2 commits into from
Nov 18, 2020
Merged

Fix uploadContent #279

merged 2 commits into from
Nov 18, 2020

Conversation

Half-Shot
Copy link
Contributor

We didn't set this flag, which meant that the raw body was being returned regardless of the other argument.

@Half-Shot
Copy link
Contributor Author

hi @benparsons

Copy link
Member

@benparsons benparsons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Half-Shot Half-Shot merged commit 37bae25 into develop Nov 18, 2020
@@ -707,7 +707,7 @@ export class Intent {
*/
public async uploadContent(content: Buffer|string|ReadStream, opts: FileUploadOpts = {}): Promise<string> {
await this.ensureRegistered();
return this.client.uploadContent(content, {...opts, onlyContentUri: true});
return this.client.uploadContent(content, {...opts, rawResponse: false, onlyContentUri: true});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Half-Shot Half-Shot deleted the hs/upload-content-fix branch May 2, 2023 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants