diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/web_server/web_server.c | 2 | ||||
-rw-r--r-- | source4/web_server/web_server.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/web_server/web_server.c b/source4/web_server/web_server.c index 99a6b65f67..239612a6bd 100644 --- a/source4/web_server/web_server.c +++ b/source4/web_server/web_server.c @@ -93,7 +93,7 @@ void websrv_output_headers(struct websrv_context *web, const char *status, struc data_blob_free(&b); } -void websrv_output(struct websrv_context *web, void *data, size_t length) +void websrv_output(struct websrv_context *web, const void *data, size_t length) { data_blob_append(web, &web->output.content, data, length); TEVENT_FD_NOT_READABLE(web->conn->event.fde); diff --git a/source4/web_server/web_server.h b/source4/web_server/web_server.h index 274a54a5c3..9f2135908a 100644 --- a/source4/web_server/web_server.h +++ b/source4/web_server/web_server.h @@ -67,7 +67,7 @@ struct websrv_context { bool wsgi_initialize(struct web_server_data *wdata); void http_error(struct websrv_context *web, const char *status, const char *info); void websrv_output_headers(struct websrv_context *web, const char *status, struct http_header *headers); -void websrv_output(struct websrv_context *web, void *data, size_t length); +void websrv_output(struct websrv_context *web, const void *data, size_t length); NTSTATUS http_parse_header(struct websrv_context *web, const char *line); #endif /* __WEB_SERVER_H__ */ |