<feed xmlns='http://www.w3.org/2005/Atom'>
<title>luci/modules/luci-base/ucode/http.uc, branch master</title>
<subtitle>Lua Configuration Interface (mirror)</subtitle>
<id>https://git-03.infra.openwrt.org/project/luci/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/project/luci/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/luci/'/>
<updated>2026-03-30T22:13:54Z</updated>
<entry>
<title>luci-base: implement http header plugins</title>
<updated>2026-03-30T22:13:54Z</updated>
<author>
<name>Paul Donald</name>
</author>
<published>2026-03-15T18:18:33Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/luci/commit/?id=ba0051729a283c69daae0671418ae0e2b563081c'/>
<id>urn:sha1:ba0051729a283c69daae0671418ae0e2b563081c</id>
<content type='text'>
This implements the injection of custom http headers via
the new plugin architecture.

Signed-off-by: Paul Donald &lt;newtwen+github@gmail.com&gt;
</content>
</entry>
<entry>
<title>luci-base: http.uc: fix eof detection in temporary upload files</title>
<updated>2023-08-21T14:37:11Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2023-08-21T14:37:11Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/luci/commit/?id=b4594b3d111171510d2581e9f0ce30bee78bd214'/>
<id>urn:sha1:b4594b3d111171510d2581e9f0ce30bee78bd214</id>
<content type='text'>
Binary string comparisons in ucode are currently unsafe, so use the
`length()` function to determine the just read data chunk size in
order to test for end of file.

Fixes: #6530
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>luci-base: http.uc: fix reference error of undeclared variable `err`</title>
<updated>2023-04-14T07:50:02Z</updated>
<author>
<name>Tianling Shen</name>
</author>
<published>2023-04-13T20:45:24Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/luci/commit/?id=588c6a1e4bc4c79dab2341ca1c9541e42aaf8665'/>
<id>urn:sha1:588c6a1e4bc4c79dab2341ca1c9541e42aaf8665</id>
<content type='text'>
The variable `err` was used without initialized.

Signed-off-by: Tianling Shen &lt;cnsztl@immortalwrt.org&gt;
</content>
</entry>
<entry>
<title>luci-base: fix luci.http.close()</title>
<updated>2022-11-02T23:38:00Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2022-11-02T23:38:00Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/luci/commit/?id=e7afd0d327bb35c502ca41a3c5e3ea098898fbd7'/>
<id>urn:sha1:e7afd0d327bb35c502ca41a3c5e3ea098898fbd7</id>
<content type='text'>
Ensure that `http.write()` or template rendering operations after a call
to `http.close()` do not produce additional output. This is required for
certain legacy Lua apps which invoke write and close operations in the
middle of a server side cbi rendering process.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>luci-base: http.uc: fix invoking Lua file upload callbacks</title>
<updated>2022-11-02T08:08:16Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2022-11-02T08:04:25Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/luci/commit/?id=d967bbaa92ae56692ab449f57ca74f120943e799'/>
<id>urn:sha1:d967bbaa92ae56692ab449f57ca74f120943e799</id>
<content type='text'>
In case a callback is installed from Lua code, the received callback
argument is not a callable function but a resource object with a call
method. Attempts to call it will leading to a `Type error: left-hand
side is not a function` error.

To solve this issue, invoke the internally set filehandler instead
which wraps the resource if needed.

Fixes: #6067
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>treewide: separate Lua runtime resources</title>
<updated>2022-10-24T23:03:37Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2022-09-13T21:50:12Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/luci/commit/?id=673f38246ac3548caefec41183e3dd7477d9f6f6'/>
<id>urn:sha1:673f38246ac3548caefec41183e3dd7477d9f6f6</id>
<content type='text'>
Move classes required for Lua runtime support into a new `luci-lua-runtime`
package. Also replace the `luci.http` and `luci.util` classes in
`luci-lib-base` with stubbed versions interacting with the ucode based
runtime environment.

Finally merge `luci-base-ucode` into the remainders of `luci-base`.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
</feed>
