From a1d9fa32ddb14dfbc3be9880f3f4aac664b94b14 Mon Sep 17 00:00:00 2001 From: Logan Powell Date: Thu, 1 Sep 2022 12:01:46 -0400 Subject: [PATCH] Resolves 49 WRT https://github.com/pwnall/node-xhr2/issues/49 removes logging for empty-bodied GET requests --- src/001-xml_http_request.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/001-xml_http_request.coffee b/src/001-xml_http_request.coffee index a37a073..dc90df9 100644 --- a/src/001-xml_http_request.coffee +++ b/src/001-xml_http_request.coffee @@ -428,7 +428,7 @@ class XMLHttpRequest extends XMLHttpRequestEventTarget throw new Error "Synchronous XHR processing not implemented" if data? and (@_method is 'GET' or @_method is 'HEAD') - console.warn "Discarding entity body for #{@_method} requests" + # console.warn "Discarding entity body for #{@_method} requests" data = null else # Send Content-Length: 0