-
Notifications
You must be signed in to change notification settings - Fork 29
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
Allow binary responses in getObject
#107
Conversation
Enforcing @joanlopez and me as reviewers as we've been following the source issue 👀 |
See design considerations in #105. |
Potential fix for k6-jslib-aws#105 and k6-jslib-aws#45
Fixes grafana#45
Hey @KOConchobhair 👋🏻 We have discussed it internally, and the maintainers agree we'd prefer the approach depicted in #105 (comment). If you have the capacity, we'd greatly appreciate it if you could align this PR's design. Otherwise, that's also fine, and we'd likely proceed with it ourselves. Just let us know 🙇🏻 |
Sorry for the delay, I was a little confused by your suggestion in #105 (comment) since I will just state that this is not an S3 API problem at all, its a very specific problem related to the inner workings of k6. So specifying an but this is a blocker for me using k6 how I want to in my project so I'll implement since I'd really like to continue using k6 |
We know this is not an official AWS header, but it is an official HTTP header, and it indicates to the server the response type you expect to receive back, so it is a good fit. This is also why we call it This way of doing it feels like a better mitigation than aligning with the Regarding the different MIME types supported, my assumption was that using the I'll look at the official support AWS headers to see if another candidate I might have overlooked shows up 🙇🏻 |
Just thinking from a k6 user perspective though, giving something as broad as an |
For clarification, as mentioned in my initial comment only "Accept: application/octet-stream" would lead to the content being treated as binary. |
oh duh, okay so rephrased "If you set the Accept header (to application/octect-stream), the S3 client will return binary content, otherwise text." |
Hey @KOConchobhair 👋🏻 Will you have capacity to update the PR according to our discussions? 🙇🏻 PS: I will be away for the next two weeks, but @joanlopez will be able to follow-up on this in the meantime. |
this is still on my list but fell down the priority a bit, hopefully i can get back to it this week |
Closing in favor of #113 |
Fixes #105