Skip to content

Commit 8b30530

Browse files
authored
Merge pull request #3 from adamm/header-fields-too-long
Community PR: Add documentation to resolve the "Header Fields are too long" issue
2 parents a361672 + a1b8c1c commit 8b30530

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ EXTRA_COMPONENT_DIRS := components/
123123
include $(IDF_PATH)/make/project.mk
124124
```
125125

126+
Update your `sdkconfig.defaults` to allow for larger HTTP Request URL lengths. This is required by some operating systems in order to use its captive portal UI to configure wifi.
127+
128+
```config
129+
CONFIG_HTTPD_MAX_URI_LEN=1024
130+
```
131+
126132
Once this is done, you can now in your user code add the header:
127133

128134
```c
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
CONFIG_LWIP_IPV6=y
2+
CONFIG_HTTPD_MAX_URI_LEN=1024

examples/http_hook/sdkconfig.defaults

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
CONFIG_LWIP_IPV6=y
2+
CONFIG_HTTPD_MAX_URI_LEN=1024

0 commit comments

Comments
 (0)