diff --git a/core/webdav.c b/core/webdav.c index 9f78cda1..811c5926 100644 --- a/core/webdav.c +++ b/core/webdav.c @@ -99,7 +99,7 @@ int uwsgi_webdav_propfind_item_add(struct uwsgi_buffer *ub, char *href, uint16_t if (etag_len > 0) { if (uwsgi_buffer_append(ub, "\n", 12)) return -1; - if (uwsgi_buffer_append_xml(ub, displayname, displayname_len)) return -1; + if (uwsgi_buffer_append_xml(ub, etag, etag_len)) return -1; if (uwsgi_buffer_append(ub, "\n", 13)) return -1; } diff --git a/proto/puwsgi.c b/proto/puwsgi.c index 0a9fb081..934813ff 100644 --- a/proto/puwsgi.c +++ b/proto/puwsgi.c @@ -24,7 +24,6 @@ int uwsgi_proto_puwsgi_parser(struct wsgi_request *wsgi_req) { #ifdef __BIG_ENDIAN__ wsgi_req->len = uwsgi_swap16(wsgi_req->len); #endif - wsgi_req->len = wsgi_req->len; if (wsgi_req->len > uwsgi.buffer_size) { uwsgi_log("invalid request block size: %u (max %u)...skip\n", wsgi_req->len, uwsgi.buffer_size); wsgi_req->write_errors++;