From e1912a334ae93de51cc678d6d52c12bbe24f3621 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 10 Apr 2008 15:27:25 +0000 Subject: [PATCH] fix wrong field name for the priority git-svn-id: http://trooper/svn/projects/jSite/trunk@695 c3eda9e8-030b-0410-8277-bc7414b0a119 --- src/net/pterodactylus/util/fcp/ClientPut.java | 2 +- src/net/pterodactylus/util/fcp/PersistentPut.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/pterodactylus/util/fcp/ClientPut.java b/src/net/pterodactylus/util/fcp/ClientPut.java index bfbe210..99a7947 100644 --- a/src/net/pterodactylus/util/fcp/ClientPut.java +++ b/src/net/pterodactylus/util/fcp/ClientPut.java @@ -104,7 +104,7 @@ public class ClientPut extends FcpMessage { * The priority of the request */ public void setPriority(Priority priority) { - setField("Priority", String.valueOf(priority)); + setField("PriorityClass", String.valueOf(priority)); } /** diff --git a/src/net/pterodactylus/util/fcp/PersistentPut.java b/src/net/pterodactylus/util/fcp/PersistentPut.java index 4c7eb36..40843b9 100644 --- a/src/net/pterodactylus/util/fcp/PersistentPut.java +++ b/src/net/pterodactylus/util/fcp/PersistentPut.java @@ -107,7 +107,7 @@ public class PersistentPut extends BaseMessage { */ public Priority getPriority() { try { - return Priority.values()[Integer.valueOf(getField("Priority"))]; + return Priority.values()[Integer.valueOf(getField("PriorityClass"))]; } catch (NumberFormatException nfe1) { return Priority.unknown; } -- 2.7.4