[rygel] core: Ignore 'POST' request in server handler
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Ignore 'POST' request in server handler
- Date: Sun, 8 Aug 2010 23:19:37 +0000 (UTC)
commit 1b425c1c2d4cb9bf68c9f33548c88a601106b14c
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sat Aug 7 04:50:53 2010 +0300
core: Ignore 'POST' request in server handler
With the current libsoup API, we are forced to handle the HTTP POST
messages before the server handler is called so by the time its called
the message must have already been handled and we don't need to do
anything about it anymore.
src/rygel/rygel-http-server.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/rygel/rygel-http-server.vala b/src/rygel/rygel-http-server.vala
index 8cc0beb..92e3853 100644
--- a/src/rygel/rygel-http-server.vala
+++ b/src/rygel/rygel-http-server.vala
@@ -187,6 +187,11 @@ internal class Rygel.HTTPServer : Rygel.TranscodeManager, Rygel.StateMachine {
string server_path,
HashTable<string,string>? query,
Soup.ClientContext soup_client) {
+ if (msg.method == "POST") {
+ // Already handled
+ return;
+ }
+
debug (_("HTTP %s request for URI '%s'. Headers:"),
msg.method,
msg.get_uri ().to_string (false));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]