-
Notifications
You must be signed in to change notification settings - Fork 10
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
Adds io.ReadCloser to request information #158
base: main
Are you sure you want to change the base?
Conversation
Quality Gate passedIssues Measures |
} | ||
|
||
func (request *RequestInformation) setContentAndContentType(writer s.SerializationWriter, contentType string) error { | ||
content, err := writer.GetSerializedContent() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd expect anything that's setting content to be updated to set the new field instead so implementers of request adapter can have a consistent experience here.
Alternatively, we could keep the code as-is, but add a vanity getter that'd return the reader if set, or wrap the content in a reader and return it if set.
This pull request has conflicting changes, the author must resolve the conflicts before this pull request can be merged. |
2868f2c
to
ebfe707
Compare
Conflicts have been resolved. A maintainer will take a look shortly. |
Quality Gate passedIssues Measures |
This pull request has conflicting changes, the author must resolve the conflicts before this pull request can be merged. |
Adds io.ReadCloser to request information.
Partially resolves microsoftgraph/msgraph-sdk-go#588