On 19/8/11 1:14 PM, Leonid Evdokimov wrote: > Hello, > > Here is patch to add "host" header to outgoing HTTP/1.1 requests. > Please, review. > > Without the patch libevent-based evhttp-client.c can't get reply from > any sane server because the request is rejected with "400 Bad request" > and workaround - adding the header manually - is required. > > -- > WBRBW, Leonid Evdokimov > xmpp:leon@xxxxxxxxxxxx && http://darkk.net.ru > tel:+79816800702 && tel:+79050965222 I regard the current implementation to resemble a DIY-HTTP headers interface. And this works well and has its advantages. For those using this part of the API I can imagine that it's a code pattern to implement this part. Oscar
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature