Skip to content
Browse files

Responses with only whitespace were assumed to be errors, and parsed …

…incorrectly. This patch fixes that, thanks to Nat Budin.

git-svn-id: https://svn.thoughtbot.com/jester/trunk@119 d7758119-aa2c-0410-afcd-b700fbd0d0b3
  • Loading branch information...
1 parent cbb6293 commit 6a5fa8d3836cd2e3712c2d9a76ca5ac042cd395f emill committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 jester.js
View
2 jester.js
@@ -503,7 +503,7 @@ Object.extend(Jester.Resource.prototype, {
var saveWork = bind(this, function(transport) {
var saved = false;
- if (transport.responseText) {
+ if (transport.responseText && (transport.responseText.strip() != "")) {
var errors = this._errorsFrom(transport.responseText);
if (errors)
this._setErrors(errors);

0 comments on commit 6a5fa8d

Please sign in to comment.
Something went wrong with that request. Please try again.