lib/QuickBaseClient.rb in quickbase_client-1.0.14 vs lib/QuickBaseClient.rb in quickbase_client-1.0.15

- old
+ new

@@ -2132,16 +2132,16 @@ end begin if USING_HTTPCLIENT - response = @httpConnection.get( @downLoadFileURL, nil, @requestHeaders ) - @responseCode = response.status - @fileContents = response.body.content if response.body + @responseCode = 404 + @fileContents = @httpConnection.get_content( @downLoadFileURL, nil, @requestHeaders ) + @responseCode = 200 if @fileContents else @responseCode, @fileContents = @httpConnection.get( @downLoadFileURL, @requestHeaders ) end - + rescue Net::HTTPBadResponse => @lastError rescue Net::HTTPHeaderSyntaxError => @lastError rescue StandardError => @lastError end