koa-proxy icon indicating copy to clipboard operation
koa-proxy copied to clipboard

added preserveHost option

Open ilyabo opened this issue 8 years ago • 4 comments

In some situations a proxy needs to preserve the original host. It should be possible to do it via options analogous to this apache proxy directive.

ilyabo avatar May 02 '16 10:05 ilyabo

Coverage Status

Coverage increased (+0.05%) to 96.825% when pulling 4d099e31c04a9597188f38cbf8bb2c90b3c71be1 on ilyabo:master into 3dc98e4b3d3aecf4ec645fca52c1bbf46e1629a0 on popomore:master.

coveralls avatar May 02 '16 10:05 coveralls

Coverage Status

Coverage increased (+0.05%) to 96.825% when pulling 96041354eabeeaa91efed6a9831ac3da3b5f9e67 on ilyabo:master into 3dc98e4b3d3aecf4ec645fca52c1bbf46e1629a0 on popomore:master.

coveralls avatar May 02 '16 20:05 coveralls

Coverage Status

Coverage increased (+0.05%) to 96.825% when pulling d329327140fc55216c19290aac87c000c4bff037 on ilyabo:master into 3dc98e4b3d3aecf4ec645fca52c1bbf46e1629a0 on popomore:master.

coveralls avatar May 09 '16 12:05 coveralls

Can you add a testcase and document about these two options?

popomore avatar Feb 02 '17 16:02 popomore