Modify

Opened 3 years ago

Last modified 3 years ago

#17825 new defect

uhttpd.send() broken in BB

Reported by: clauz@… Owned by: developers
Priority: normal Milestone:
Component: packages Version: Barrier Breaker 14.07
Keywords: Cc:

Description

The example in this page (section "embedded lua"):
http://wiki.openwrt.org/doc/uci/uhttpd#embedded.lua
yields a "bad gateway" from uhttpd.

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by clauz@…

Changing the handle_request function to:

function handle_request(env)
        print("Content-Type: text/plain\r\n\r\n")
        print("Hello world.\n")
end

works, instead.

comment:2 Changed 3 years ago by yousong

uhttpd2 only accepts status line of the form "Status: 200 OK" and defaults to this value if it is missing from cgi scripts.

Last edited 3 years ago by yousong (previous) (diff)

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.