/* This file is part of Metaproxy.
- Copyright (C) 2005-2013 Index Data
+ Copyright (C) Index Data
Metaproxy is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
z_HTTP_header_set(odr, &hres->headers,
"Content-Type", "text/plain");
- hres->content_buf = odr_strdup(odr, buf);
+ hres->content_buf = (char*) odr_malloc(odr, len);
+ memcpy(hres->content_buf, buf, len);
hres->content_len = len;
}
odr_destroy(enc);