Skip to content

Commit

Permalink
Fix some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samrocketman committed Oct 27, 2023
1 parent cc0ce64 commit 92d1335
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,14 +258,11 @@ class SimpleRestService {
}
// copy valid fields only
http_headers.each { k, v ->
if(!(v in [String, Boolean])) {
return
}
if(v in String) {
tmp_http_headers[k] = v.toString()
if(v in Boolean) {
tmp_http_headers[k] = v
}
else {
tmp_http_headers[k] = v
tmp_http_headers[k] = v.toString()
}
}
Boolean binary_data = YamlOperator.getObjectValue(tmp_http_headers, 'Binary-Data', false)
Expand Down

0 comments on commit 92d1335

Please sign in to comment.