Skip to content

Commit aa0b7e4

Browse files
committed
audio service - changed from GET method to POST
1 parent 64137ae commit aa0b7e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

audio.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ void AudioResponder::reply(ostream& out, cxxtools::http::Request& request, cxxto
55
{
66
QueryHandler::addHeader(reply);
77

8-
if (request.method() == "GET") {
8+
if (request.method() == "POST") {
99
QueryHandler q("/audio", request);
1010
string vol = q.getOptionAsString("volume");
1111
int level = q.getOptionAsInt("volume");
@@ -64,7 +64,7 @@ void AudioResponder::reply(ostream& out, cxxtools::http::Request& request, cxxto
6464
delete audioList;
6565

6666
} else {
67-
reply.httpReturn(403, "Only GET methods are supported by the audio control");
67+
reply.httpReturn(403, "Only POST method is supported by the audio control");
6868
}
6969
}
7070

audio.o

1.45 MB
Binary file not shown.

0 commit comments

Comments
 (0)