Skip to content

Commit 0a13335

Browse files
committed
fix for is_success_http_status(response_code)
1 parent 9516bd4 commit 0a13335

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

plugins/rdioscanner_uploader/rdioscanner_uploader.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ class Rdio_Scanner_Uploader : public Plugin_Api {
7676
return false;
7777
}
7878

79+
static bool is_success_http_status(long code) {
80+
return code >= 200 && code < 300;
81+
}
82+
7983
static bool passes_talkgroup_filter(const Rdio_Scanner_System* sys, uint32_t talkgroup) {
8084
if (!sys) return true; // no system config => don't filter here
8185
const std::string tg = std::to_string(talkgroup);

0 commit comments

Comments
 (0)