You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just noticed a subtle but important difference in how H2O.next and H2O.reprocess handle env, and I wonder whether or not this is intended:
The next handler called via H2O.next receives the env with CONTENT_TYPE. The call issued by H2O.reprocess does not contain the original CONTENT_TYPE (or any CONTENT_TYPE for that matter).
In a WordPress backend and using H2O.reprocess I receive only status codes of 400 for calls to /wp-admin/admin-ajax.php. This is because "CONTENT_TYPE"=>"application/x-www-form-urlencoded; charset=UTF-8" is dropped from the request (env). And I do not know of any way to re-enter it.
Using H2O.next, the original CONTENT_TYPE of the request is retained and I get the proper 200 answer.
I just noticed a subtle but important difference in how
H2O.next
andH2O.reprocess
handleenv
, and I wonder whether or not this is intended:The next handler called via
H2O.next
receives theenv
withCONTENT_TYPE
. The call issued byH2O.reprocess
does not contain the originalCONTENT_TYPE
(or any CONTENT_TYPE for that matter).In a WordPress backend and using
H2O.reprocess
I receive only status codes of 400 for calls to/wp-admin/admin-ajax.php
. This is because"CONTENT_TYPE"=>"application/x-www-form-urlencoded; charset=UTF-8"
is dropped from the request (env). And I do not know of any way to re-enter it.Using
H2O.next
, the originalCONTENT_TYPE
of the request is retained and I get the proper 200 answer.For some more background: I was playing around with @i110 's patch that solved my problems with
H2O.next
andH2O.reprocess
.The text was updated successfully, but these errors were encountered: