Thread (3 messages) flat view 3 messages, 3 authors, 2017-12-04

Re: [PATCH v6 1/2] http-backend: respect CONTENT_LENGTH as specified by rfc3875

From: Jeff King <hidden>
Date: 2017-12-04 17:13:19

On Mon, Dec 04, 2017 at 07:18:55AM +0000, Florian Manschwetus wrote:
I could provide a bash script I used in between to make this working
with IIS, without fixing http-backend binary, maybe this helps to
understand how this cases might be handled.
I think it would be pretty easy to handle all cases by inserting another
process in front of http-backend that just reads $CONTENT_LENGTH bytes
and then gives an EOF to http-backend. I assume that's what your bash
script does. It's just that this passes the data through an extra layer
of pipes.

If that's an acceptable tradeoff, it seems like an ideal solution from a
maintainability standpoint, since it skips all the tricky situations
inside the http-backend code.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help