Ticket #13347: 0001-Fix-PoorMan-hanging-on-HEAD-requests.patch

File 0001-Fix-PoorMan-hanging-on-HEAD-requests.patch, 902 bytes (added by kainjow, 3 years ago)
  • src/apps/poorman/libhttpd/libhttpd.c

    From 0dd9002d49daf3f8a6afafd93b05b87e199f3f12 Mon Sep 17 00:00:00 2001
    From: Kevin Wojniak <kainjow@users.noreply.github.com>
    Date: Sat, 25 Feb 2017 22:47:38 +0000
    Subject: [PATCH] Fix PoorMan hanging on HEAD requests
    
    ---
     src/apps/poorman/libhttpd/libhttpd.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/apps/poorman/libhttpd/libhttpd.c b/src/apps/poorman/libhttpd/libhttpd.c
    index ce22eeb..6175ff1 100644
    a b if(hc->hs->do_list_dir){  
    32503250
    32513251    figure_mime( hc );
    32523252
     3253    hc->file_address = (char*)1;
    32533254    if ( hc->method == METHOD_HEAD )
    32543255    {
    32553256    send_mime(
    if(hc->hs->do_list_dir){  
    32653266    }
    32663267    else
    32673268    {
    3268     hc->file_address = (char*)1;
    32693269    send_mime(
    32703270        hc, 200, ok200title, hc->encodings, "", hc->type, hc->sb.st_size,
    32713271        hc->sb.st_mtime );