lwip-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-commits] [SCM] lwIP - A Lightweight TCPIP stack branch, master, up


From: Simon Goldschmidt
Subject: [lwip-commits] [SCM] lwIP - A Lightweight TCPIP stack branch, master, updated. master_at_STABLE-2_0_0-1216-g6706b37
Date: Fri, 2 Feb 2018 03:31:58 -0500 (EST)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "lwIP - A Lightweight TCPIP stack".

The branch, master has been updated
       via  6706b3778e6d39127bca2faa7e5f5d13190656de (commit)
       via  ab281cb7503cb85ef0f44f4f13213380b52cbce5 (commit)
      from  7edbd95b50ba3d140f29c8ad4ae7e1f300149ed8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6706b3778e6d39127bca2faa7e5f5d13190656de
Author: goldsimon <address@hidden>
Date:   Fri Feb 2 09:29:52 2018 +0100

    httpd: add "struct file*" parameter to httpd_cgi_handler() callback

commit ab281cb7503cb85ef0f44f4f13213380b52cbce5
Author: Giuseppe Modugno <address@hidden>
Date:   Mon Nov 27 09:18:41 2017 +0100

    httpd: move httpd_cgi_handler() call
    
    This patch moves in advance httpd_cgi_handler() call, before assigning
    variables like hs->file and hs->left.
    
    In this way, CGI handler could prepare the reply data and set the
    "file properties", like file->data and file->len. At the exit, hs->file
    and hs->left is correctly assigned.
    
    The handler prototype says it can't access file pointer, however it is
    simple to obtain it after setting LWIP_HTTPD_FILE_STATE that enables a
    "file state" pointer. It is sufficient to assign file->state to file
    itself in fs_open_custom().
    
    For example, I have the request GET /login.cgi?user=admin&pwd=admin and
    I have to reply with some JSON data. The answer depends on parameters
    user and pwd passed in the query string.

-----------------------------------------------------------------------

Summary of changes:
 UPGRADING                     |  2 ++
 src/apps/httpd/httpd.c        | 42 +++++++++++++++++++++---------------------
 src/include/lwip/apps/httpd.h |  6 +++++-
 3 files changed, 28 insertions(+), 22 deletions(-)


hooks/post-receive
-- 
lwIP - A Lightweight TCPIP stack



reply via email to

[Prev in Thread] Current Thread [Next in Thread]