Skip to content

Commit

Permalink
Use SOUP_METHOD_GET/POST instead of hardcoded strings
Browse files Browse the repository at this point in the history
  • Loading branch information
monich committed Feb 18, 2014
1 parent 45574b0 commit 108b862
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mms-lib/src/mms_task_retrieve.c
Expand Up @@ -170,7 +170,7 @@ mms_task_retrieve_start(
if (fd >= 0) {
/* Set up the transfer */
retrieve->tx = mms_http_transfer_new(task->config,
connection, "GET", retrieve->uri, fd);
connection, SOUP_METHOD_GET, retrieve->uri, fd);
if (retrieve->tx) {
/* Start the transfer */
SoupMessage* message = retrieve->tx->message;
Expand Down
2 changes: 1 addition & 1 deletion mms-lib/src/mms_task_upload.c
Expand Up @@ -135,7 +135,7 @@ mms_task_upload_start(
/* Set up the transfer */
up->bytes_total = st.st_size;
up->tx = mms_http_transfer_new(up->task.config, connection,
"POST", connection->mmsc, fd);
SOUP_METHOD_POST, connection->mmsc, fd);
if (up->tx) {
/* Headers */
SoupMessage* msg = up->tx->message;
Expand Down

0 comments on commit 108b862

Please sign in to comment.