[libsoup] Handle PUT methods in soup_form_request_for_data
- From: Dan Winship <danw src gnome org>
- To: svn-commits-list gnome org
- Subject: [libsoup] Handle PUT methods in soup_form_request_for_data
- Date: Fri, 8 May 2009 17:00:30 -0400 (EDT)
commit 9325668d49a2b825e584f017953c58683f32b049
Author: Ross Burton <ross linux intel com>
Date: Fri May 8 14:04:19 2009 +0100
Handle PUT methods in soup_form_request_for_data
http://bugzilla.gnome.org/show_bug.cgi?id=581860
---
libsoup/soup-form.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libsoup/soup-form.c b/libsoup/soup-form.c
index a2103f7..7263890 100644
--- a/libsoup/soup-form.c
+++ b/libsoup/soup-form.c
@@ -366,7 +366,7 @@ soup_form_request_for_data (const char *method, const char *uri_string,
msg = soup_message_new_from_uri (method, uri);
- if (!strcmp (method, "POST")) {
+ if (!strcmp (method, "POST") || !strcmp (method, "PUT")) {
soup_message_set_request (
msg, SOUP_FORM_MIME_TYPE_URLENCODED,
SOUP_MEMORY_TAKE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]