aboutsummaryrefslogtreecommitdiff
path: root/plugins/http-files/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/http-files/src')
-rw-r--r--plugins/http-files/src/file_sender.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/http-files/src/file_sender.vala b/plugins/http-files/src/file_sender.vala
index 65b33eb4..41829dd9 100644
--- a/plugins/http-files/src/file_sender.vala
+++ b/plugins/http-files/src/file_sender.vala
@@ -102,7 +102,7 @@ public class HttpFileSender : FileSender, Object {
Soup.Session session = new Soup.Session();
try {
yield session.send_async(message);
- if (message.status_code < 200 && message.status_code >= 300) {
+ if (message.status_code < 200 || message.status_code >= 300) {
throw new FileSendError.UPLOAD_FAILED("HTTP status code %s".printf(message.status_code.to_string()));
}
} catch (Error e) {