From 0adbfcba96c4ce0380c8f70f9a82759b368f39de Mon Sep 17 00:00:00 2001
From: Sergey Lyubka <valenok@gmail.com>
Date: Tue, 14 Jan 2014 19:28:29 +0000
Subject: [PATCH] Moved send_options out of NO_DAV conditional

---
 mongoose.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mongoose.c b/mongoose.c
index 1b2c77caa..8e634ea9d 100644
--- a/mongoose.c
+++ b/mongoose.c
@@ -2641,6 +2641,7 @@ static void forward_put_data(struct connection *conn) {
     }
   }
 }
+#endif //  NO_DAV
 
 static void send_options(struct connection *conn) {
   static const char reply[] = "HTTP/1.1 200 OK\r\nAllow: GET, POST, HEAD, "
@@ -2648,7 +2649,6 @@ static void send_options(struct connection *conn) {
   spool(&conn->remote_iobuf, reply, sizeof(reply) - 1);
   conn->flags |= CONN_SPOOL_DONE;
 }
-#endif //  NO_DAV
 
 #ifndef NO_AUTH
 void mg_send_digest_auth_request(struct mg_connection *c) {
-- 
GitLab