<div dir="ltr">I’m attempting to diagnose a <a href="https://github.com/square/okhttp/issues/1897" target="_blank">bug report</a> against OkHttp, the HTTP/2 client for Android that I help to maintain.<div class="gmail_quote"><div dir="ltr"><div>
<p style="margin:0px 0px 1.2em!important"><br></p><p style="margin:0px 0px 1.2em!important">Some of my users have run into problems making HTTP/2 requests against NGINX. I believe the problem is that NGINX’s HPACK decoder can’t decode the following:</p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline;white-space:pre-wrap;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important">020347455404232f726573742f76312f73697465732f37333335303032312f70<br>6f7374732f363039313501187075626c69632d6170692e776f72647072657373<br>2e636f6d060568747470730f00057574662d380f2b0c6f6b687474702f322e35<br>2e30
</code></pre><p style="margin:0px 0px 1.2em!important">It fails, and reports a PROTOCOL_ERROR to the client. Instead, it should have decoded to this:</p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline;white-space:pre-wrap;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important">:method: GET
:path: /rest/v1/sites/73350021/posts/60915
:authority: <a href="http://public-api.wordpress.com" target="_blank">public-api.wordpress.com</a>
:scheme: https
accept-charset: utf-8
user-agent: okhttp/2.5.0
</code></pre><p style="margin:0px 0px 1.2em!important">Please confirm. Unfortunately, I can’t tell you the particulars of the version of NGINX deployed on <a href="http://wordpress.com" target="_blank">wordpress.com</a> that triggers this.<br></p><p style="margin:0px 0px 1.2em!important">Thanks!<br>– Jesse</p>
<div title="MDH:SeKAmW0gYXR0ZW1wdGluZyB0byBkaWFnbm9zZSBhIFtidWcgcmVwb3J0XSg8YSBocmVmPSJodHRw
czovL2dpdGh1Yi5jb20vc3F1YXJlL29raHR0cC9pc3N1ZXMvMTg5NyI+aHR0cHM6Ly9naXRodWIu
Y29tL3NxdWFyZS9va2h0dHAvaXNzdWVzLzE4OTc8L2E+KSBhZ2FpbnN0IE9rSHR0cCwgdGhlIEhU
VFAvMiBjbGllbnQgZm9yIEFuZHJvaWQgdGhhdCBJIGhlbHAgdG8gbWFpbnRhaW4uPGJyPjxicj5T
b21lIG9mIG15IHVzZXJzIGhhdmUgcnVuIGludG8gcHJvYmxlbXMgbWFraW5nIEhUVFAvMiByZXF1
ZXN0cyBhZ2FpbnN0IE5HSU5YLiBJIGJlbGlldmUgdGhlIHByb2JsZW0gaXMgdGhhdCBOR0lOWOKA
mXMgSFBBQ0sgZGVjb2RlciBjYW7igJl0IGRlY29kZSB0aGUgZm9sbG93aW5nLjxicj48ZGl2Pjxi
cj5gYGA8YnI+MDIwMzQ3NDU1NDA0MjMyZjcyNjU3Mzc0MmY3NjMxMmY3MzY5NzQ2NTczMmYzNzMz
MzMzNTMwMzAzMjMxMmY3MDZmNzM3NDczMmYzNjMwMzkzMTM1MDExODcwNzU2MjZjNjk2MzJkNjE3
MDY5MmU3NzZmNzI2NDcwNzI2NTczNzMyZTYzNmY2ZDA2MDU2ODc0NzQ3MDczMGYwMDA1NzU3NDY2
MmQzODBmMmIwYzZmNmI2ODc0NzQ3MDJmMzIyZTM1MmUzMDxicj5gYGA8YnI+PGJyPjwvZGl2Pjxk
aXY+SeKAmWQgZXhwZWN0IGl0IHRvIGRlY29kZSB0byB0aGlzOjxicj48YnI+YGBgPGJyPjptZXRo
b2Q6IEdFVDxicj46cGF0aDogL3Jlc3QvdjEvc2l0ZXMvNzMzNTAwMjEvcG9zdHMvNjA5MTU8YnI+
OmF1dGhvcml0eTogcHVibGljLWFwaS53b3JkcHJlc3MuY29tPGJyPjpzY2hlbWU6IGh0dHBzPGJy
PmFjY2VwdC1jaGFyc2V0OiB1dGYtODxicj51c2VyLWFnZW50OiBva2h0dHAvMi41LjA8YnI+YGBg
PGJyPjwvZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXY+VGhhbmtzITxicj48L2Rpdj48ZGl2PuKAkyBK
ZXNzZTxicj48L2Rpdj4=" style="min-height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0"></div></div></div></div></div>