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){
|
3250 | 3250 | |
3251 | 3251 | figure_mime( hc ); |
3252 | 3252 | |
| 3253 | hc->file_address = (char*)1; |
3253 | 3254 | if ( hc->method == METHOD_HEAD ) |
3254 | 3255 | { |
3255 | 3256 | send_mime( |
… |
… |
if(hc->hs->do_list_dir){
|
3265 | 3266 | } |
3266 | 3267 | else |
3267 | 3268 | { |
3268 | | hc->file_address = (char*)1; |
3269 | 3269 | send_mime( |
3270 | 3270 | hc, 200, ok200title, hc->encodings, "", hc->type, hc->sb.st_size, |
3271 | 3271 | hc->sb.st_mtime ); |