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

feat: fallback to detecting content type from content #19

Merged
merged 1 commit into from
May 12, 2022

Conversation

yansal
Copy link
Contributor

@yansal yansal commented May 12, 2022

No description provided.

@yansal yansal requested a review from thoas May 12, 2022 10:21
return err
}
contenttype = http.DetectContentType(data)
input.Body = io.MultiReader(bytes.NewReader(data), content)
Copy link
Member

Choose a reason for hiding this comment

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

chipotage, content.Seek(0, io.SeekStart) pour remettre le curseur intact ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

le souci est qu'on n'a pas forcement la methode Seek

@thoas thoas merged commit cb491e6 into master May 12, 2022
@thoas thoas deleted the feat/detect-content-type-from-content branch May 12, 2022 12:40
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

2 participants