Skip to content

Commit

Permalink
Resolves 49
Browse files Browse the repository at this point in the history
WRT pwnall#49 removes logging for empty-bodied GET requests
  • Loading branch information
loganpowell authored Sep 1, 2022
1 parent ab483bb commit a1d9fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/001-xml_http_request.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a1d9fa3

Please sign in to comment.