142 |
|
|
143 |
|
void DecentralizedMedia::Process(const net::Http::Request& request, net::Http::Response& response) |
144 |
|
{ |
145 |
< |
if (request.method_ == _B("EXTENSIONS") || request.method_ == _B("GET") && request.uri_.GetUri() == ext::EmptyString) |
145 |
> |
if (request.method_ == _B("EXTENSIONS") || request.method_ == _B("GET") && request.uri_.GetUri().IsEmpty()) |
146 |
|
{ |
147 |
|
api::Cout << "EXTENSIONS" << ios::NewLine; |
148 |
|
|
151 |
|
_foreach (const ext::RedBlackSet<ext::String>, extension, extensions) |
152 |
|
response << *extension << ios::NewLineNoFlush; |
153 |
|
} |
154 |
< |
else if (request.method_ == _B("MEDIA") || request.method_ == _B("POST") && request.uri_.GetUri() == ext::EmptyString) |
154 |
> |
else if (request.method_ == _B("MEDIA") || request.method_ == _B("POST") && request.uri_.GetUri().IsEmpty()) |
155 |
|
{ |
156 |
|
api::Cout << "MEDIA" << ios::NewLine; |
157 |
|
|