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

net/http: invalid RAR sniff signature from the MIME Sniff spec #30926

odeke-em opened this issue Mar 19, 2019 · 1 comment


None yet
2 participants
Copy link

commented Mar 19, 2019

I am coming here from CL created by @Gnouc's vigilance.

In particular it uses a wrong character for the 4th byte i.e.
0x20 " " for both RAR v5 and RAR v4 instead of 0x21 "!"

as per


Lines 188 to 189 in faa7fa0

&exactSig{[]byte("Rar \x1A\x07\x00"), "application/x-rar-compressed"}, // RAR v1.5-v4.0
&exactSig{[]byte("Rar \x1A\x07\x01\x00"), "application/x-rar-compressed"}, // RAR v5+

The sniff signature that we got from the MIME sniff spec is wrong and that's acknowledged at
but also the official RAR Labs website shows the correct signature as

@odeke-em odeke-em added this to the Go1.13 milestone Mar 19, 2019


This comment has been minimized.

Copy link

commented Mar 19, 2019

Change mentions this issue: net/http: fix wrong mime rar signature

@gopherbot gopherbot closed this in 349e7df Mar 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.