Skip to content

Commit

Permalink
Bugfix for longer file names
Browse files Browse the repository at this point in the history
  • Loading branch information
fredlcore committed Nov 24, 2024
1 parent e959047 commit 4bcc53d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BSB_LAN/BSB_LAN.ino
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ void printHTTPheader(uint16_t code, int mimetype, bool addcharset, bool isGzip,

int recognize_mime(char *str) {
// if (strlen(dot)) {
char mimebuf[32];
char mimebuf[64];
int i = 0;
int mimetype = 0;
if (!str) return mimetype;
Expand All @@ -745,7 +745,7 @@ int recognize_mime(char *str) {
// else mimetype = 0;
// You can add more MIME types here
return mimetype;
}
}


void setBusType() {
Expand Down Expand Up @@ -4632,7 +4632,7 @@ void loop() {
httpflags |= HTTP_GET_ROOT;
strcpy(p + 1, "index.html");
}
printlnToDebug(p);
printlnToDebug(p);
char *dot = strchr(p, '.');
char *dot_t = NULL;
while (dot) {
Expand Down

0 comments on commit 4bcc53d

Please sign in to comment.