Skip to content

Commit

Permalink
webserver: add define WEBSERVER_HAS_HOOK when ::addHook() is present (#…
Browse files Browse the repository at this point in the history
…7515)

This allows conditional compilation for external libraries
  • Loading branch information
d-a-v committed Aug 11, 2020
1 parent fc2426a commit 7773237
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/ESP8266WebServer/src/ESP8266WebServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ enum HTTPUploadStatus { UPLOAD_FILE_START, UPLOAD_FILE_WRITE, UPLOAD_FILE_END,
enum HTTPClientStatus { HC_NONE, HC_WAIT_READ, HC_WAIT_CLOSE };
enum HTTPAuthMethod { BASIC_AUTH, DIGEST_AUTH };

#define WEBSERVER_HAS_HOOK 1

#define HTTP_DOWNLOAD_UNIT_SIZE 1460

#ifndef HTTP_UPLOAD_BUFLEN
Expand Down

0 comments on commit 7773237

Please sign in to comment.