fix htype check
This commit is contained in:
parent
0c2c2d21d3
commit
284a09d14f
@ -163,7 +163,7 @@ public class Collector implements Runnable {
|
||||
// hinfo.setHeader(header);
|
||||
Map<String, Object> m = mapper.readValue(header, new TypeReference<HashMap<String, Object>>() {
|
||||
});
|
||||
if (((List<String>) m.get("htype")).contains("array-1.0")) { // currently
|
||||
if (((String) m.get("htype")).equals("array-1.0")) { // currently
|
||||
// we
|
||||
// only
|
||||
// support
|
||||
@ -195,7 +195,7 @@ public class Collector implements Runnable {
|
||||
hinfo.setText(m);
|
||||
|
||||
}
|
||||
else if (((List<String>) m.get("htype")).contains("pilatus-1.0")) { // pilatus
|
||||
else if (((String) m.get("htype")).equals("pilatus-1.0")) { // pilatus
|
||||
// 1.0
|
||||
// message
|
||||
// support
|
||||
|
Loading…
x
Reference in New Issue
Block a user