Skip to content

Commit 6754cab

Browse files
Update src/literals.h
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b7b0ff1 commit 6754cab

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/literals.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,13 @@
2424

2525
namespace asyncsrv {
2626

27+
#ifdef ARDUINO
28+
using ::emptyString;
29+
#else
30+
inline const String emptyString{};
31+
#endif
32+
2733
static constexpr const char empty[] = "";
28-
static const String emptyString;
2934

3035
static constexpr const char T__opaque[] = "\", opaque=\"";
3136
static constexpr const char T_100_CONTINUE[] = "100-continue";

0 commit comments

Comments
 (0)