Skip to content

Commit

Permalink
Fixed CI
Browse files Browse the repository at this point in the history
This only took three weeks to do (:
  • Loading branch information
MCJack123 committed Nov 10, 2023
1 parent 82e9032 commit 83af589
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/apis/http.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,9 @@ static void websocket_client_thread(Computer *comp, const std::string& str, cons
queueEvent(comp, websocket_failure, data);
return;
}
#if POCO_VERSION >= 0x010C0000
cs->setReceiveTimeout(Poco::Timespan(timeout * 1000000));
#endif
size_t pos = str.find('/', str.find(uri.getHost()));
size_t hash = pos != std::string::npos ? str.find('#', pos) : std::string::npos;
std::string path = urlEncode(pos != std::string::npos ? str.substr(pos, hash - pos) : "/");
Expand Down

0 comments on commit 83af589

Please sign in to comment.