We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 520bd0b commit e0b7732Copy full SHA for e0b7732
src/server/conn/auto.rs
@@ -215,7 +215,7 @@ where
215
216
// We starts as H2 and switch to H1 when we don't get the preface.
217
if buf.filled().len() == len
218
- || &buf.filled()[len..] != &H2_PREFACE[len..buf.filled().len()]
+ || buf.filled()[len..] != H2_PREFACE[len..buf.filled().len()]
219
{
220
*this.version = Version::H1;
221
break;
0 commit comments