diff --git a/lib/restler.js b/lib/restler.js index 715845a..94f7858 100644 --- a/lib/restler.js +++ b/lib/restler.js @@ -65,7 +65,7 @@ function Request(uri, options) { this.options.data = buffer; this.headers['Content-Length'] = buffer.length; } - if (!this.options.data) { + if (!this.options.data && this.options.method !== 'GET') { this.headers['Content-Length'] = 0; } }