skoobe / riofs

Userspace S3 filesystem
GNU General Public License v3.0
393 stars 60 forks source link

Invalid Accept-Encoding value #118

Closed yurykats closed 8 years ago

yurykats commented 8 years ago

Accept-Encoding header is set to “identify” in http_connection.c

This is a typo! It should be “identity”. (see https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html)

yurykats commented 8 years ago

This prevents riofs from being used against a custom S3 storage provider, since the said provider implements stricter header checks, and rejects riofs's request with 400:

14:34:38 [con](http_connection_on_responce_cb http_connection.c:583) [con: 0x1b363a0] Server returned HTTP error: 400 (Bad Request). AWS message: Unsupported Accept-Encoding specified

wizzard commented 8 years ago

Great finding, thank you!