1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-06 01:57:40 +00:00
freebsd-ports/www/libevhtp/files/patch-evhtp.c
Dmitry Marakasov 39fd72b067 - Update to 1.2.11
- Fix option names
- Add DEBUG options
- Switch to pkg-plist

PR:		204681
Submitted by:	Ultima1252@gmail.com (maintainer)
2015-12-03 14:57:25 +00:00

30 lines
1.1 KiB
C

### Description: Commit 67ed0bc caused ports to break, this
### patch will revert the commits until a proper fix is created.
### Issue ID: https://github.com/ellzey/libevhtp/issues/201
### https://github.com/ellzey/libevhtp/commit/67ed0bce433655dfeab65b797279dd167b394feb
--- evhtp.c.orig 2015-11-02 23:01:53 UTC
+++ evhtp.c
@@ -1673,12 +1673,10 @@ check_proto:
evhtp_header_new("Connection", "close", 0, 0));
}
-#if 0
- if (!out_len && !evhtp_header_find(request->headers_out, "Content-Length")) {
+ if (!evhtp_header_find(request->headers_out, "Content-Length")) {
evhtp_headers_add_header(request->headers_out,
evhtp_header_new("Content-Length", "0", 0, 0));
}
-#endif
break;
case EVHTP_PROTO_10:
@@ -2356,7 +2354,7 @@ evhtp_connection_pause(evhtp_connection_
c->paused = 1;
- bufferevent_disable(c->bev, EV_READ | EV_WRITE);
+ bufferevent_disable(c->bev, EV_READ);
return;
}