Hi! No special reason, other than that we keep the headers in a single-linked list (without a tail pointer) and thus appending is more expensive than prepending. Also, if you truly care about the order, you could just reverse the application calls, so there is no good reason to change it now (might just break somebody relying on it). Not that MHD's API gives you any firm assurances on the order of headers when you add them to the response.
Happy hacking! Christian On 06/30/2015 11:41 AM, Markus Doppelbauer wrote: > Hello, > > If I add http-headers to a response via "MHD_add_response_header()", the > headers are written in reverse order - first in last out. Is there a special > reason? > > Thanks a lot > Markus
0xE29FC3CC.asc
Description: application/pgp-keys
signature.asc
Description: OpenPGP digital signature