Skip to content

Commit a626c5f

Browse files
make pathArg return a const
1 parent 63163d7 commit a626c5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266WebServer/src/detail/RequestHandler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class RequestHandler {
2525
std::vector<String> pathArgs;
2626

2727
public:
28-
String pathArg(unsigned int i) {
28+
const String& pathArg(unsigned int i) {
2929
assert(i < pathArgs.size());
3030
return pathArgs[i];
3131
}

0 commit comments

Comments
 (0)