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

S3cmd "--add-header" can not use underline #1054

Closed
Zstro opened this issue Sep 29, 2019 · 1 comment
Closed

S3cmd "--add-header" can not use underline #1054

Zstro opened this issue Sep 29, 2019 · 1 comment

Comments

@Zstro
Copy link

Zstro commented Sep 29, 2019

I can not use s3cmd to put a file with “--add-header=X-Amz-meta-asd_ad:asdad”, just because of underline.

s3cmd put --add-header="X-Amz-meta-asd_ad:asdad" test.go s3://zztest
ERROR: Parameter problem: Invalid character(s) in header name 'X-Amz-meta-asd_ad': "_"

Is there any solution?

@fviard fviard closed this as completed in c8de951 Mar 26, 2020
@fviard
Copy link
Contributor

fviard commented Mar 26, 2020

Thank you for the report.
It was a legacy limitation.
I just pushed a fix to remove this limitation in MASTER.

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

No branches or pull requests

2 participants