You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/11/05 08:18:43 UTC

[GitHub] [apisix] Firstsawyou opened a new issue #2636: chore: sort the request headers output by the 'M.uri()' function in 't/lib/server.lua'

Firstsawyou opened a new issue #2636:
URL: https://github.com/apache/apisix/issues/2636


   ### Issue description
   
   In writing test cases, when the `_M.uri()` method in `t/lib/server.lua` is used, the order of output request headers is unstable, resulting in test cases sometimes failing. We need to sort the headers obtained by `local headers = ngx.req.get_headers()` to make it stable.
   
   Need to modify the code: https://github.com/apache/apisix/blob/master/t/lib/server.lua#L103-L106
   Modification method reference:: https://github.com/apache/apisix/blob/master/t/plugin/proxy-mirror.t#L40-L49


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander closed issue #2636: chore: sort the request headers output by the _M.uri and _M.old_uri function in 't/lib/server.lua'

Posted by GitBox <gi...@apache.org>.
spacewander closed issue #2636:
URL: https://github.com/apache/apisix/issues/2636


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org