Skip to content

Commit

Permalink
break it on purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
ndushay committed Sep 4, 2019
1 parent f81164d commit 59b416e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/symphony_reader.rb
Expand Up @@ -46,7 +46,7 @@ def symphony_response

def validate_response(resp)
exp_content_length = resp.headers['Content-Length'].to_i
actual_content_length = resp.body.length
actual_content_length = resp.body.length + 5
errmsg = "Incomplete response received from Symphony for #{@catkey} - expected #{exp_content_length} bytes but got #{actual_content_length}"
raise RecordIncompleteError, errmsg unless actual_content_length == exp_content_length

Expand Down

0 comments on commit 59b416e

Please sign in to comment.