winlin

fix the hls notify bug, pass the query to get path.

@@ -358,8 +358,18 @@ int SrsHttpHooks::on_hls_notify(std::string url, SrsRequest* req, std::string ts @@ -358,8 +358,18 @@ int SrsHttpHooks::on_hls_notify(std::string url, SrsRequest* req, std::string ts
358 return ret; 358 return ret;
359 } 359 }
360 360
  361 + std::string path = uri.get_query();
  362 + if (path.empty()) {
  363 + path = uri.get_path();
  364 + } else {
  365 + path = uri.get_path();
  366 + path += "?";
  367 + path += uri.get_query();
  368 + }
  369 + srs_warn("GET %s", path.c_str());
  370 +
361 SrsHttpMessage* msg = NULL; 371 SrsHttpMessage* msg = NULL;
362 - if ((ret = http.get(uri.get_path(), "", &msg)) != ERROR_SUCCESS) { 372 + if ((ret = http.get(path.c_str(), "", &msg)) != ERROR_SUCCESS) {
363 return ret; 373 return ret;
364 } 374 }
365 SrsAutoFree(SrsHttpMessage, msg); 375 SrsAutoFree(SrsHttpMessage, msg);